/*! For license information please see index.js.LICENSE.txt */
!function (t, e) {
  "object" == typeof exports && "object" == typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define([], e) : "object" == typeof exports ? exports.SCPPrint = e() : t.SCPPrint = e()
}(window, (function () {
  return function (t) {
    var e = {};

    function n(r) {
      if (e[r]) return e[r].exports;
      var o = e[r] = {i: r, l: !1, exports: {}};
      return t[r].call(o.exports, o, o.exports, n), o.l = !0, o.exports
    }

    return n.m = t, n.c = e, n.d = function (t, e, r) {
      n.o(t, e) || Object.defineProperty(t, e, {enumerable: !0, get: r})
    }, n.r = function (t) {
      "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {value: "Module"}), Object.defineProperty(t, "__esModule", {value: !0})
    }, n.t = function (t, e) {
      if (1 & e && (t = n(t)), 8 & e) return t;
      if (4 & e && "object" == typeof t && t && t.__esModule) return t;
      var r = Object.create(null);
      if (n.r(r), Object.defineProperty(r, "default", {
        enumerable: !0,
        value: t
      }), 2 & e && "string" != typeof t) for (var o in t) n.d(r, o, function (e) {
        return t[e]
      }.bind(null, o));
      return r
    }, n.n = function (t) {
      var e = t && t.__esModule ? function () {
        return t.default
      } : function () {
        return t
      };
      return n.d(e, "a", e), e
    }, n.o = function (t, e) {
      return Object.prototype.hasOwnProperty.call(t, e)
    }, n.p = "", n(n.s = 195)
  }([function (t, e, n) {
    var r = n(32)("wks"), o = n(25), i = n(1).Symbol, s = "function" == typeof i;
    (t.exports = function (t) {
      return r[t] || (r[t] = s && i[t] || (s ? i : o)("Symbol." + t))
    }).store = r
  }, function (t, e) {
    var n = t.exports = "undefined" != typeof window && window.Math == Math ? window : "undefined" != typeof self && self.Math == Math ? self : Function("return this")();
    "number" == typeof __g && (__g = n)
  }, function (t, e, n) {
    var r = n(1), o = n(16), i = n(12), s = n(10), a = n(17), c = "prototype",
      u = function (t, e, n) {
        var f, l, h, p, d = t & u.F, y = t & u.G, g = t & u.S, v = t & u.P, m = t & u.B,
          w = y ? r : g ? r[e] || (r[e] = {}) : (r[e] || {})[c], b = y ? o : o[e] || (o[e] = {}),
          x = b[c] || (b[c] = {});
        for (f in y && (n = e), n) h = ((l = !d && w && void 0 !== w[f]) ? w : n)[f], p = m && l ? a(h, r) : v && "function" == typeof h ? a(Function.call, h) : h, w && s(w, f, h, t & u.U), b[f] != h && i(b, f, p), v && x[f] != h && (x[f] = h)
      };
    r.core = o, u.F = 1, u.G = 2, u.S = 4, u.P = 8, u.B = 16, u.W = 32, u.U = 64, u.R = 128, t.exports = u
  }, function (t, e, n) {
    var r = n(5);
    t.exports = function (t) {
      if (!r(t)) throw TypeError(t + " is not an object!");
      return t
    }
  }, function (t, e) {
    t.exports = function (t) {
      try {
        return !!t()
      } catch (t) {
        return !0
      }
    }
  }, function (t, e) {
    t.exports = function (t) {
      return "object" == typeof t ? null !== t : "function" == typeof t
    }
  }, function (t, e, n) {
    "use strict";
    var r = n(92), o = Object.prototype.toString;

    function i(t) {
      return "[object Array]" === o.call(t)
    }

    function s(t) {
      return void 0 === t
    }

    function a(t) {
      return null !== t && "object" == typeof t
    }

    function c(t) {
      return "[object Function]" === o.call(t)
    }

    function u(t, e) {
      if (null != t) if ("object" != typeof t && (t = [t]), i(t)) for (var n = 0, r = t.length; n < r; n++) e.call(null, t[n], n, t); else for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && e.call(null, t[o], o, t)
    }

    t.exports = {
      isArray: i, isArrayBuffer: function (t) {
        return "[object ArrayBuffer]" === o.call(t)
      }, isBuffer: function (t) {
        return null !== t && !s(t) && null !== t.constructor && !s(t.constructor) && "function" == typeof t.constructor.isBuffer && t.constructor.isBuffer(t)
      }, isFormData: function (t) {
        return "undefined" != typeof FormData && t instanceof FormData
      }, isArrayBufferView: function (t) {
        return "undefined" != typeof ArrayBuffer && ArrayBuffer.isView ? ArrayBuffer.isView(t) : t && t.buffer && t.buffer instanceof ArrayBuffer
      }, isString: function (t) {
        return "string" == typeof t
      }, isNumber: function (t) {
        return "number" == typeof t
      }, isObject: a, isUndefined: s, isDate: function (t) {
        return "[object Date]" === o.call(t)
      }, isFile: function (t) {
        return "[object File]" === o.call(t)
      }, isBlob: function (t) {
        return "[object Blob]" === o.call(t)
      }, isFunction: c, isStream: function (t) {
        return a(t) && c(t.pipe)
      }, isURLSearchParams: function (t) {
        return "undefined" != typeof URLSearchParams && t instanceof URLSearchParams
      }, isStandardBrowserEnv: function () {
        return ("undefined" == typeof navigator || "ReactNative" !== navigator.product && "NativeScript" !== navigator.product && "NS" !== navigator.product) && ("undefined" != typeof window && "undefined" != typeof document)
      }, forEach: u, merge: function t() {
        var e = {};

        function n(n, r) {
          "object" == typeof e[r] && "object" == typeof n ? e[r] = t(e[r], n) : e[r] = n
        }

        for (var r = 0, o = arguments.length; r < o; r++) u(arguments[r], n);
        return e
      }, deepMerge: function t() {
        var e = {};

        function n(n, r) {
          "object" == typeof e[r] && "object" == typeof n ? e[r] = t(e[r], n) : e[r] = "object" == typeof n ? t({}, n) : n
        }

        for (var r = 0, o = arguments.length; r < o; r++) u(arguments[r], n);
        return e
      }, extend: function (t, e, n) {
        return u(e, (function (e, o) {
          t[o] = n && "function" == typeof e ? r(e, n) : e
        })), t
      }, trim: function (t) {
        return t.replace(/^\s*/, "").replace(/\s*$/, "")
      }
    }
  }, function (t, e, n) {
    t.exports = !n(4)((function () {
      return 7 != Object.defineProperty({}, "a", {
        get: function () {
          return 7
        }
      }).a
    }))
  }, function (t, e, n) {
    var r = n(3), o = n(59), i = n(33), s = Object.defineProperty;
    e.f = n(7) ? Object.defineProperty : function (t, e, n) {
      if (r(t), e = i(e, !0), r(n), o) try {
        return s(t, e, n)
      } catch (t) {
      }
      if ("get" in n || "set" in n) throw TypeError("Accessors not supported!");
      return "value" in n && (t[e] = n.value), t
    }
  }, function (t, e, n) {
    (function (e) {
      var r;
      t.exports = (r = r || function (t, r) {
        var o;
        if ("undefined" != typeof window && window.crypto && (o = window.crypto), "undefined" != typeof self && self.crypto && (o = self.crypto), "undefined" != typeof globalThis && globalThis.crypto && (o = globalThis.crypto), !o && "undefined" != typeof window && window.msCrypto && (o = window.msCrypto), !o && void 0 !== e && e.crypto && (o = e.crypto), !o) try {
          o = n(191)
        } catch (t) {
        }
        var i = function () {
          if (o) {
            if ("function" == typeof o.getRandomValues) try {
              return o.getRandomValues(new Uint32Array(1))[0]
            } catch (t) {
            }
            if ("function" == typeof o.randomBytes) try {
              return o.randomBytes(4).readInt32LE()
            } catch (t) {
            }
          }
          throw new Error("Native crypto module could not be used to get secure random number.")
        }, s = Object.create || function () {
          function t() {
          }

          return function (e) {
            var n;
            return t.prototype = e, n = new t, t.prototype = null, n
          }
        }(), a = {}, c = a.lib = {}, u = c.Base = {
          extend: function (t) {
            var e = s(this);
            return t && e.mixIn(t), e.hasOwnProperty("init") && this.init !== e.init || (e.init = function () {
              e.$super.init.apply(this, arguments)
            }), e.init.prototype = e, e.$super = this, e
          }, create: function () {
            var t = this.extend();
            return t.init.apply(t, arguments), t
          }, init: function () {
          }, mixIn: function (t) {
            for (var e in t) t.hasOwnProperty(e) && (this[e] = t[e]);
            t.hasOwnProperty("toString") && (this.toString = t.toString)
          }, clone: function () {
            return this.init.prototype.extend(this)
          }
        }, f = c.WordArray = u.extend({
          init: function (t, e) {
            t = this.words = t || [], this.sigBytes = e != r ? e : 4 * t.length
          }, toString: function (t) {
            return (t || h).stringify(this)
          }, concat: function (t) {
            var e = this.words, n = t.words, r = this.sigBytes, o = t.sigBytes;
            if (this.clamp(), r % 4) for (var i = 0; i < o; i++) {
              var s = n[i >>> 2] >>> 24 - i % 4 * 8 & 255;
              e[r + i >>> 2] |= s << 24 - (r + i) % 4 * 8
            } else for (var a = 0; a < o; a += 4) e[r + a >>> 2] = n[a >>> 2];
            return this.sigBytes += o, this
          }, clamp: function () {
            var e = this.words, n = this.sigBytes;
            e[n >>> 2] &= 4294967295 << 32 - n % 4 * 8, e.length = t.ceil(n / 4)
          }, clone: function () {
            var t = u.clone.call(this);
            return t.words = this.words.slice(0), t
          }, random: function (t) {
            for (var e = [], n = 0; n < t; n += 4) e.push(i());
            return new f.init(e, t)
          }
        }), l = a.enc = {}, h = l.Hex = {
          stringify: function (t) {
            for (var e = t.words, n = t.sigBytes, r = [], o = 0; o < n; o++) {
              var i = e[o >>> 2] >>> 24 - o % 4 * 8 & 255;
              r.push((i >>> 4).toString(16)), r.push((15 & i).toString(16))
            }
            return r.join("")
          }, parse: function (t) {
            for (var e = t.length, n = [], r = 0; r < e; r += 2) n[r >>> 3] |= parseInt(t.substr(r, 2), 16) << 24 - r % 8 * 4;
            return new f.init(n, e / 2)
          }
        }, p = l.Latin1 = {
          stringify: function (t) {
            for (var e = t.words, n = t.sigBytes, r = [], o = 0; o < n; o++) {
              var i = e[o >>> 2] >>> 24 - o % 4 * 8 & 255;
              r.push(String.fromCharCode(i))
            }
            return r.join("")
          }, parse: function (t) {
            for (var e = t.length, n = [], r = 0; r < e; r++) n[r >>> 2] |= (255 & t.charCodeAt(r)) << 24 - r % 4 * 8;
            return new f.init(n, e)
          }
        }, d = l.Utf8 = {
          stringify: function (t) {
            try {
              return decodeURIComponent(escape(p.stringify(t)))
            } catch (t) {
              throw new Error("Malformed UTF-8 data")
            }
          }, parse: function (t) {
            return p.parse(unescape(encodeURIComponent(t)))
          }
        }, y = c.BufferedBlockAlgorithm = u.extend({
          reset: function () {
            this._data = new f.init, this._nDataBytes = 0
          }, _append: function (t) {
            "string" == typeof t && (t = d.parse(t)), this._data.concat(t), this._nDataBytes += t.sigBytes
          }, _process: function (e) {
            var n, r = this._data, o = r.words, i = r.sigBytes, s = this.blockSize, a = i / (4 * s),
              c = (a = e ? t.ceil(a) : t.max((0 | a) - this._minBufferSize, 0)) * s,
              u = t.min(4 * c, i);
            if (c) {
              for (var l = 0; l < c; l += s) this._doProcessBlock(o, l);
              n = o.splice(0, c), r.sigBytes -= u
            }
            return new f.init(n, u)
          }, clone: function () {
            var t = u.clone.call(this);
            return t._data = this._data.clone(), t
          }, _minBufferSize: 0
        }), g = (c.Hasher = y.extend({
          cfg: u.extend(), init: function (t) {
            this.cfg = this.cfg.extend(t), this.reset()
          }, reset: function () {
            y.reset.call(this), this._doReset()
          }, update: function (t) {
            return this._append(t), this._process(), this
          }, finalize: function (t) {
            return t && this._append(t), this._doFinalize()
          }, blockSize: 16, _createHelper: function (t) {
            return function (e, n) {
              return new t.init(n).finalize(e)
            }
          }, _createHmacHelper: function (t) {
            return function (e, n) {
              return new g.HMAC.init(t, n).finalize(e)
            }
          }
        }), a.algo = {});
        return a
      }(Math), r)
    }).call(this, n(100))
  }, function (t, e, n) {
    var r = n(1), o = n(12), i = n(13), s = n(25)("src"), a = n(114), c = "toString",
      u = ("" + a).split(c);
    n(16).inspectSource = function (t) {
      return a.call(t)
    }, (t.exports = function (t, e, n, a) {
      var c = "function" == typeof n;
      c && (i(n, "name") || o(n, "name", e)), t[e] !== n && (c && (i(n, s) || o(n, s, t[e] ? "" + t[e] : u.join(String(e)))), t === r ? t[e] = n : a ? t[e] ? t[e] = n : o(t, e, n) : (delete t[e], o(t, e, n)))
    })(Function.prototype, c, (function () {
      return "function" == typeof this && this[s] || a.call(this)
    }))
  }, function (t, e) {
    var n = {}.toString;
    t.exports = function (t) {
      return n.call(t).slice(8, -1)
    }
  }, function (t, e, n) {
    var r = n(8), o = n(26);
    t.exports = n(7) ? function (t, e, n) {
      return r.f(t, e, o(1, n))
    } : function (t, e, n) {
      return t[e] = n, t
    }
  }, function (t, e) {
    var n = {}.hasOwnProperty;
    t.exports = function (t, e) {
      return n.call(t, e)
    }
  }, function (t, e, n) {
    var r = n(45), o = n(19);
    t.exports = function (t) {
      return r(o(t))
    }
  }, function (t, e, n) {
    var r = n(19);
    t.exports = function (t) {
      return Object(r(t))
    }
  }, function (t, e) {
    var n = t.exports = {version: "2.6.11"};
    "number" == typeof __e && (__e = n)
  }, function (t, e, n) {
    var r = n(22);
    t.exports = function (t, e, n) {
      if (r(t), void 0 === e) return t;
      switch (n) {
        case 1:
          return function (n) {
            return t.call(e, n)
          };
        case 2:
          return function (n, r) {
            return t.call(e, n, r)
          };
        case 3:
          return function (n, r, o) {
            return t.call(e, n, r, o)
          }
      }
      return function () {
        return t.apply(e, arguments)
      }
    }
  }, function (t, e, n) {
    var r = n(34), o = Math.min;
    t.exports = function (t) {
      return t > 0 ? o(r(t), 9007199254740991) : 0
    }
  }, function (t, e) {
    t.exports = function (t) {
      if (null == t) throw TypeError("Can't call method on  " + t);
      return t
    }
  }, function (t, e) {
    let n;
    const r = [0, 26, 44, 70, 100, 134, 172, 196, 242, 292, 346, 404, 466, 532, 581, 655, 733, 815, 901, 991, 1085, 1156, 1258, 1364, 1474, 1588, 1706, 1828, 1921, 2051, 2185, 2323, 2465, 2611, 2761, 2876, 3034, 3196, 3362, 3532, 3706];
    e.getSymbolSize = function (t) {
      if (!t) throw new Error('"version" cannot be null or undefined');
      if (t < 1 || t > 40) throw new Error('"version" should be in range from 1 to 40');
      return 4 * t + 17
    }, e.getSymbolTotalCodewords = function (t) {
      return r[t]
    }, e.getBCHDigit = function (t) {
      let e = 0;
      for (; 0 !== t;) e++, t >>>= 1;
      return e
    }, e.setToSJISFunction = function (t) {
      if ("function" != typeof t) throw new Error('"toSJISFunc" is not a valid function.');
      n = t
    }, e.isKanjiModeEnabled = function () {
      return void 0 !== n
    }, e.toSJIS = function (t) {
      return n(t)
    }
  }, function (t, e, n) {
    const r = n(105), o = n(106);
    e.NUMERIC = {id: "Numeric", bit: 1, ccBits: [10, 12, 14]}, e.ALPHANUMERIC = {
      id: "Alphanumeric",
      bit: 2,
      ccBits: [9, 11, 13]
    }, e.BYTE = {id: "Byte", bit: 4, ccBits: [8, 16, 16]}, e.KANJI = {
      id: "Kanji",
      bit: 8,
      ccBits: [8, 10, 12]
    }, e.MIXED = {bit: -1}, e.getCharCountIndicator = function (t, e) {
      if (!t.ccBits) throw new Error("Invalid mode: " + t);
      if (!r.isValid(e)) throw new Error("Invalid version: " + e);
      return e >= 1 && e < 10 ? t.ccBits[0] : e < 27 ? t.ccBits[1] : t.ccBits[2]
    }, e.getBestModeForData = function (t) {
      return o.testNumeric(t) ? e.NUMERIC : o.testAlphanumeric(t) ? e.ALPHANUMERIC : o.testKanji(t) ? e.KANJI : e.BYTE
    }, e.toString = function (t) {
      if (t && t.id) return t.id;
      throw new Error("Invalid mode")
    }, e.isValid = function (t) {
      return t && t.bit && t.ccBits
    }, e.from = function (t, n) {
      if (e.isValid(t)) return t;
      try {
        return function (t) {
          if ("string" != typeof t) throw new Error("Param is not a string");
          switch (t.toLowerCase()) {
            case"numeric":
              return e.NUMERIC;
            case"alphanumeric":
              return e.ALPHANUMERIC;
            case"kanji":
              return e.KANJI;
            case"byte":
              return e.BYTE;
            default:
              throw new Error("Unknown mode: " + t)
          }
        }(t)
      } catch (t) {
        return n
      }
    }
  }, function (t, e) {
    t.exports = function (t) {
      if ("function" != typeof t) throw TypeError(t + " is not a function!");
      return t
    }
  }, function (t, e, n) {
    var r = n(81), o = n(48);
    t.exports = Object.keys || function (t) {
      return r(t, o)
    }
  }, function (t, e) {
    t.exports = !1
  }, function (t, e) {
    var n = 0, r = Math.random();
    t.exports = function (t) {
      return "Symbol(".concat(void 0 === t ? "" : t, ")_", (++n + r).toString(36))
    }
  }, function (t, e) {
    t.exports = function (t, e) {
      return {enumerable: !(1 & t), configurable: !(2 & t), writable: !(4 & t), value: e}
    }
  }, function (t, e) {
    t.exports = {}
  }, function (t, e, n) {
    var r = n(38), o = n(26), i = n(14), s = n(33), a = n(13), c = n(59),
      u = Object.getOwnPropertyDescriptor;
    e.f = n(7) ? u : function (t, e) {
      if (t = i(t), e = s(e, !0), c) try {
        return u(t, e)
      } catch (t) {
      }
      if (a(t, e)) return o(!r.f.call(t, e), t[e])
    }
  }, function (t, e, n) {
    t.exports = n(143)
  }, function (t, e, n) {
    "use strict";
    var r = n(31), o = {};
    o[n(0)("toStringTag")] = "z", o + "" != "[object z]" && n(10)(Object.prototype, "toString", (function () {
      return "[object " + r(this) + "]"
    }), !0)
  }, function (t, e, n) {
    var r = n(11), o = n(0)("toStringTag"), i = "Arguments" == r(function () {
      return arguments
    }());
    t.exports = function (t) {
      var e, n, s;
      return void 0 === t ? "Undefined" : null === t ? "Null" : "string" == typeof (n = function (t, e) {
        try {
          return t[e]
        } catch (t) {
        }
      }(e = Object(t), o)) ? n : i ? r(e) : "Object" == (s = r(e)) && "function" == typeof e.callee ? "Arguments" : s
    }
  }, function (t, e, n) {
    var r = n(16), o = n(1), i = "__core-js_shared__", s = o[i] || (o[i] = {});
    (t.exports = function (t, e) {
      return s[t] || (s[t] = void 0 !== e ? e : {})
    })("versions", []).push({
      version: r.version,
      mode: n(24) ? "pure" : "global",
      copyright: "© 2019 Denis Pushkarev (zloirock.ru)"
    })
  }, function (t, e, n) {
    var r = n(5);
    t.exports = function (t, e) {
      if (!r(t)) return t;
      var n, o;
      if (e && "function" == typeof (n = t.toString) && !r(o = n.call(t))) return o;
      if ("function" == typeof (n = t.valueOf) && !r(o = n.call(t))) return o;
      if (!e && "function" == typeof (n = t.toString) && !r(o = n.call(t))) return o;
      throw TypeError("Can't convert object to primitive value")
    }
  }, function (t, e) {
    var n = Math.ceil, r = Math.floor;
    t.exports = function (t) {
      return isNaN(t = +t) ? 0 : (t > 0 ? r : n)(t)
    }
  }, function (t, e, n) {
    var r = n(8).f, o = n(13), i = n(0)("toStringTag");
    t.exports = function (t, e, n) {
      t && !o(t = n ? t : t.prototype, i) && r(t, i, {configurable: !0, value: e})
    }
  }, function (t, e, n) {
    var r = n(3), o = n(128), i = n(48), s = n(47)("IE_PROTO"), a = function () {
    }, c = "prototype", u = function () {
      var t, e = n(42)("iframe"), r = i.length;
      for (e.style.display = "none", n(44).appendChild(e), e.src = "javascript:", (t = e.contentWindow.document).open(), t.write("<script>document.F=Object<\/script>"), t.close(), u = t.F; r--;) delete u[c][i[r]];
      return u()
    };
    t.exports = Object.create || function (t, e) {
      var n;
      return null !== t ? (a[c] = r(t), n = new a, a[c] = null, n[s] = t) : n = u(), void 0 === e ? n : o(n, e)
    }
  }, function (t, e, n) {
    "use strict";
    var r = n(74), o = n(129), i = n(27), s = n(14);
    t.exports = n(80)(Array, "Array", (function (t, e) {
      this._t = s(t), this._i = 0, this._k = e
    }), (function () {
      var t = this._t, e = this._k, n = this._i++;
      return !t || n >= t.length ? (this._t = void 0, o(1)) : o(0, "keys" == e ? n : "values" == e ? t[n] : [n, t[n]])
    }), "values"), i.Arguments = i.Array, r("keys"), r("values"), r("entries")
  }, function (t, e) {
    e.f = {}.propertyIsEnumerable
  }, function (t, e) {
    e.f = Object.getOwnPropertySymbols
  }, function (t, e, n) {
    var r = n(81), o = n(48).concat("length", "prototype");
    e.f = Object.getOwnPropertyNames || function (t) {
      return r(t, o)
    }
  }, function (module, __webpack_exports__, __webpack_require__) {
    "use strict";
    __webpack_require__.d(__webpack_exports__, "a", (function () {
      return getCLodopJsState
    })), __webpack_require__.d(__webpack_exports__, "b", (function () {
      return getLodop
    }));
    var MainJS = "CLodopfuncs.js", URL_WS1 = "ws://localhost:8000/" + MainJS,
      URL_WS2 = "ws://localhost:18000/" + MainJS, URL_HTTP1 = "http://localhost:8000/" + MainJS,
      URL_HTTP2 = "http://localhost:18000/" + MainJS,
      URL_HTTP3 = "https://localhost.lodop.net:8443/" + MainJS, LoadJsState;

    function getCLodopJsState() {
      return LoadJsState
    }

    function checkOrTryHttp() {
      if (window.getCLodop) return console.log("使用websocket获取Clodop成功"), LoadJsState = "complete", !0;
      if (console.log("使用websocket获取Clodop失败，尝试使用http或https连接"), "loadingB" != LoadJsState && "complete" != LoadJsState) {
        LoadJsState = "loadingB";
        var t = document.head || document.getElementsByTagName("head")[0] || document.documentElement,
          e = document.createElement("script"), n = document.createElement("script"),
          r = document.createElement("script");
        e.onload = n.onload = r.onload = n.onerror = r.onerror = function () {
          console.log("使用http或https连接完成"), LoadJsState = "complete"
        }, e.onerror = function (e) {
          n.src = URL_HTTP2, t.insertBefore(n, t.firstChild)
        }, "https:" !== window.location.protocol ? (e.src = URL_HTTP1, t.insertBefore(e, t.firstChild)) : (r.src = URL_HTTP3, t.insertBefore(r, t.firstChild))
      }
    }

    function getLodop() {
      var t, e = "https://scp-tcdn.sf-express.com/scp/soft/SCPPrint_Win32NT_6.570CN.exe",
        n = "<br><div class='scpprint-tips'>Web打印服务CLodop未安装启动，点击这里<a href=".concat(e, " target='_self'>下载执行安装</a>"),
        r = "<br><div class='scpprint-tips'>Web打印服务CLodop需升级!点击这里<a href=".concat(e, " target='_self'>执行升级</a>"),
        o = "，成功后请刷新本页面或重启浏览器。</div>";
      try {
        t = window.getCLodop()
      } catch (t) {
      }
      return t || "complete" === LoadJsState ? t ? CLODOP.CVERSION < "4.1.6.0" ? {
        code: 3,
        msg: r + o,
        downloadUrl: e
      } : (t.SET_LICENSES("顺丰科技有限公司", "A8014B09DC3900222D3047E9942A8F3504D", "順豐科技有限公司", "EA15AFAF29B939797009E405CDEB043768A"), t.SET_LICENSES("THIRD LICENSE", "", "Sf Technology Co., Ltd.", "F5BD5E2D3083D6F7FA2FF6C5DFEB3740F52"), t) : {
        code: 2,
        msg: n + "<br>（若此前已安装过，可<a href='CLodop.protocol:setup' target='_self'>点这里直接再次启动</a>）" + o + "<br>注：内网用户可通过顺丰自助工具一键安装【顺丰云打印插件】</br>",
        downloadUrl: e
      } : {code: 4, msg: "网页还没下载完毕，请稍等一下再操作。"}
    }

    (function loadCLodop() {
      LoadJsState = "loadingA", !window.WebSocket && window.MozWebSocket && (window.WebSocket = window.MozWebSocket);
      try {
        console.log("尝试使用websocket");
        var WSK1 = new WebSocket(URL_WS1);
        WSK1.onopen = function (t) {
          setTimeout((function () {
            console.log("websocket连接成功，端口8000"), checkOrTryHttp()
          }), 200)
        }, WSK1.onmessage = function (e) {
          window.getCLodop || eval(e.data)
        }, WSK1.onerror = function (e) {
          var WSK2 = new WebSocket(URL_WS2);
          WSK2.onopen = function (t) {
            setTimeout((function () {
              console.log("websocket连接成功，端口18000"), checkOrTryHttp()
            }), 200)
          }, WSK2.onmessage = function (e) {
            window.getCLodop || eval(e.data)
          }, WSK2.onerror = function (t) {
            checkOrTryHttp()
          }
        }
      } catch (t) {
        console.log("websocket连接出错：", t), checkOrTryHttp()
      }
    })()
  }, function (t, e, n) {
    var r = n(5), o = n(1).document, i = r(o) && r(o.createElement);
    t.exports = function (t) {
      return i ? o.createElement(t) : {}
    }
  }, function (t, e, n) {
    "use strict";
    var r, o, i, s, a = n(24), c = n(1), u = n(17), f = n(31), l = n(2), h = n(5), p = n(22),
      d = n(115), y = n(116), g = n(63), v = n(64).set, m = n(117)(), w = n(66), b = n(118),
      x = n(119), S = n(120), E = "Promise", _ = c.TypeError, O = c.process, T = O && O.versions,
      P = T && T.v8 || "", A = c[E], k = "process" == f(O), L = function () {
      }, C = o = w.f, I = !!function () {
        try {
          var t = A.resolve(1), e = (t.constructor = {})[n(0)("species")] = function (t) {
            t(L, L)
          };
          return (k || "function" == typeof PromiseRejectionEvent) && t.then(L) instanceof e && 0 !== P.indexOf("6.6") && -1 === x.indexOf("Chrome/66")
        } catch (t) {
        }
      }(), R = function (t) {
        var e;
        return !(!h(t) || "function" != typeof (e = t.then)) && e
      }, N = function (t, e) {
        if (!t._n) {
          t._n = !0;
          var n = t._c;
          m((function () {
            for (var r = t._v, o = 1 == t._s, i = 0, s = function (e) {
              var n, i, s, a = o ? e.ok : e.fail, c = e.resolve, u = e.reject, f = e.domain;
              try {
                a ? (o || (2 == t._h && B(t), t._h = 1), !0 === a ? n = r : (f && f.enter(), n = a(r), f && (f.exit(), s = !0)), n === e.promise ? u(_("Promise-chain cycle")) : (i = R(n)) ? i.call(n, c, u) : c(n)) : u(r)
              } catch (t) {
                f && !s && f.exit(), u(t)
              }
            }; n.length > i;) s(n[i++]);
            t._c = [], t._n = !1, e && !t._h && j(t)
          }))
        }
      }, j = function (t) {
        v.call(c, (function () {
          var e, n, r, o = t._v, i = D(t);
          if (i && (e = b((function () {
            k ? O.emit("unhandledRejection", o, t) : (n = c.onunhandledrejection) ? n({
              promise: t,
              reason: o
            }) : (r = c.console) && r.error && r.error("Unhandled promise rejection", o)
          })), t._h = k || D(t) ? 2 : 1), t._a = void 0, i && e.e) throw e.v
        }))
      }, D = function (t) {
        return 1 !== t._h && 0 === (t._a || t._c).length
      }, B = function (t) {
        v.call(c, (function () {
          var e;
          k ? O.emit("rejectionHandled", t) : (e = c.onrejectionhandled) && e({
            promise: t,
            reason: t._v
          })
        }))
      }, M = function (t) {
        var e = this;
        e._d || (e._d = !0, (e = e._w || e)._v = t, e._s = 2, e._a || (e._a = e._c.slice()), N(e, !0))
      }, F = function (t) {
        var e, n = this;
        if (!n._d) {
          n._d = !0, n = n._w || n;
          try {
            if (n === t) throw _("Promise can't be resolved itself");
            (e = R(t)) ? m((function () {
              var r = {_w: n, _d: !1};
              try {
                e.call(t, u(F, r, 1), u(M, r, 1))
              } catch (t) {
                M.call(r, t)
              }
            })) : (n._v = t, n._s = 1, N(n, !1))
          } catch (t) {
            M.call({_w: n, _d: !1}, t)
          }
        }
      };
    I || (A = function (t) {
      d(this, A, E, "_h"), p(t), r.call(this);
      try {
        t(u(F, this, 1), u(M, this, 1))
      } catch (t) {
        M.call(this, t)
      }
    }, (r = function (t) {
      this._c = [], this._a = void 0, this._s = 0, this._d = !1, this._v = void 0, this._h = 0, this._n = !1
    }).prototype = n(121)(A.prototype, {
      then: function (t, e) {
        var n = C(g(this, A));
        return n.ok = "function" != typeof t || t, n.fail = "function" == typeof e && e, n.domain = k ? O.domain : void 0, this._c.push(n), this._a && this._a.push(n), this._s && N(this, !1), n.promise
      }, catch: function (t) {
        return this.then(void 0, t)
      }
    }), i = function () {
      var t = new r;
      this.promise = t, this.resolve = u(F, t, 1), this.reject = u(M, t, 1)
    }, w.f = C = function (t) {
      return t === A || t === s ? new i(t) : o(t)
    }), l(l.G + l.W + l.F * !I, {Promise: A}), n(35)(A, E), n(122)(E), s = n(16)[E], l(l.S + l.F * !I, E, {
      reject: function (t) {
        var e = C(this);
        return (0, e.reject)(t), e.promise
      }
    }), l(l.S + l.F * (a || !I), E, {
      resolve: function (t) {
        return S(a && this === s ? A : this, t)
      }
    }), l(l.S + l.F * !(I && n(67)((function (t) {
      A.all(t).catch(L)
    }))), E, {
      all: function (t) {
        var e = this, n = C(e), r = n.resolve, o = n.reject, i = b((function () {
          var n = [], i = 0, s = 1;
          y(t, !1, (function (t) {
            var a = i++, c = !1;
            n.push(void 0), s++, e.resolve(t).then((function (t) {
              c || (c = !0, n[a] = t, --s || r(n))
            }), o)
          })), --s || r(n)
        }));
        return i.e && o(i.v), n.promise
      }, race: function (t) {
        var e = this, n = C(e), r = n.reject, o = b((function () {
          y(t, !1, (function (t) {
            e.resolve(t).then(n.resolve, r)
          }))
        }));
        return o.e && r(o.v), n.promise
      }
    })
  }, function (t, e, n) {
    var r = n(1).document;
    t.exports = r && r.documentElement
  }, function (t, e, n) {
    var r = n(11);
    t.exports = Object("z").propertyIsEnumerable(0) ? Object : function (t) {
      return "String" == r(t) ? t.split("") : Object(t)
    }
  }, function (t, e, n) {
    "use strict";
    var r = n(79)(!0);
    n(80)(String, "String", (function (t) {
      this._t = String(t), this._i = 0
    }), (function () {
      var t, e = this._t, n = this._i;
      return n >= e.length ? {
        value: void 0,
        done: !0
      } : (t = r(e, n), this._i += t.length, {value: t, done: !1})
    }))
  }, function (t, e, n) {
    var r = n(32)("keys"), o = n(25);
    t.exports = function (t) {
      return r[t] || (r[t] = o(t))
    }
  }, function (t, e) {
    t.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")
  }, function (t, e, n) {
    for (var r = n(37), o = n(23), i = n(10), s = n(1), a = n(12), c = n(27), u = n(0), f = u("iterator"), l = u("toStringTag"), h = c.Array, p = {
      CSSRuleList: !0,
      CSSStyleDeclaration: !1,
      CSSValueList: !1,
      ClientRectList: !1,
      DOMRectList: !1,
      DOMStringList: !1,
      DOMTokenList: !0,
      DataTransferItemList: !1,
      FileList: !1,
      HTMLAllCollection: !1,
      HTMLCollection: !1,
      HTMLFormElement: !1,
      HTMLSelectElement: !1,
      MediaList: !0,
      MimeTypeArray: !1,
      NamedNodeMap: !1,
      NodeList: !0,
      PaintRequestList: !1,
      Plugin: !1,
      PluginArray: !1,
      SVGLengthList: !1,
      SVGNumberList: !1,
      SVGPathSegList: !1,
      SVGPointList: !1,
      SVGStringList: !1,
      SVGTransformList: !1,
      SourceBufferList: !1,
      StyleSheetList: !0,
      TextTrackCueList: !1,
      TextTrackList: !1,
      TouchList: !1
    }, d = o(p), y = 0; y < d.length; y++) {
      var g, v = d[y], m = p[v], w = s[v], b = w && w.prototype;
      if (b && (b[f] || a(b, f, h), b[l] || a(b, l, v), c[v] = h, m)) for (g in r) b[g] || i(b, g, r[g], !0)
    }
  }, function (t, e, n) {
    var r = n(2), o = n(16), i = n(4);
    t.exports = function (t, e) {
      var n = (o.Object || {})[t] || Object[t], s = {};
      s[t] = e(n), r(r.S + r.F * i((function () {
        n(1)
      })), "Object", s)
    }
  }, function (t, e, n) {
    "use strict";
    var r = n(1), o = n(13), i = n(7), s = n(2), a = n(10), c = n(132).KEY, u = n(4), f = n(32),
      l = n(35), h = n(25), p = n(0), d = n(86), y = n(87), g = n(133), v = n(77), m = n(3),
      w = n(5), b = n(15), x = n(14), S = n(33), E = n(26), _ = n(36), O = n(134), T = n(28),
      P = n(39), A = n(8), k = n(23), L = T.f, C = A.f, I = O.f, R = r.Symbol, N = r.JSON,
      j = N && N.stringify, D = "prototype", B = p("_hidden"), M = p("toPrimitive"),
      F = {}.propertyIsEnumerable, U = f("symbol-registry"), z = f("symbols"), H = f("op-symbols"),
      q = Object[D], J = "function" == typeof R && !!P.f, K = r.QObject,
      V = !K || !K[D] || !K[D].findChild, W = i && u((function () {
        return 7 != _(C({}, "a", {
          get: function () {
            return C(this, "a", {value: 7}).a
          }
        })).a
      })) ? function (t, e, n) {
        var r = L(q, e);
        r && delete q[e], C(t, e, n), r && t !== q && C(q, e, r)
      } : C, Y = function (t) {
        var e = z[t] = _(R[D]);
        return e._k = t, e
      }, G = J && "symbol" == typeof R.iterator ? function (t) {
        return "symbol" == typeof t
      } : function (t) {
        return t instanceof R
      }, X = function (t, e, n) {
        return t === q && X(H, e, n), m(t), e = S(e, !0), m(n), o(z, e) ? (n.enumerable ? (o(t, B) && t[B][e] && (t[B][e] = !1), n = _(n, {enumerable: E(0, !1)})) : (o(t, B) || C(t, B, E(1, {})), t[B][e] = !0), W(t, e, n)) : C(t, e, n)
      }, $ = function (t, e) {
        m(t);
        for (var n, r = g(e = x(e)), o = 0, i = r.length; i > o;) X(t, n = r[o++], e[n]);
        return t
      }, Q = function (t) {
        var e = F.call(this, t = S(t, !0));
        return !(this === q && o(z, t) && !o(H, t)) && (!(e || !o(this, t) || !o(z, t) || o(this, B) && this[B][t]) || e)
      }, Z = function (t, e) {
        if (t = x(t), e = S(e, !0), t !== q || !o(z, e) || o(H, e)) {
          var n = L(t, e);
          return !n || !o(z, e) || o(t, B) && t[B][e] || (n.enumerable = !0), n
        }
      }, tt = function (t) {
        for (var e, n = I(x(t)), r = [], i = 0; n.length > i;) o(z, e = n[i++]) || e == B || e == c || r.push(e);
        return r
      }, et = function (t) {
        for (var e, n = t === q, r = I(n ? H : x(t)), i = [], s = 0; r.length > s;) !o(z, e = r[s++]) || n && !o(q, e) || i.push(z[e]);
        return i
      };
    J || (R = function () {
      if (this instanceof R) throw TypeError("Symbol is not a constructor!");
      var t = h(arguments.length > 0 ? arguments[0] : void 0), e = function (n) {
        this === q && e.call(H, n), o(this, B) && o(this[B], t) && (this[B][t] = !1), W(this, t, E(1, n))
      };
      return i && V && W(q, t, {configurable: !0, set: e}), Y(t)
    }, a(R[D], "toString", (function () {
      return this._k
    })), T.f = Z, A.f = X, n(40).f = O.f = tt, n(38).f = Q, P.f = et, i && !n(24) && a(q, "propertyIsEnumerable", Q, !0), d.f = function (t) {
      return Y(p(t))
    }), s(s.G + s.W + s.F * !J, {Symbol: R});
    for (var nt = "hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","), rt = 0; nt.length > rt;) p(nt[rt++]);
    for (var ot = k(p.store), it = 0; ot.length > it;) y(ot[it++]);
    s(s.S + s.F * !J, "Symbol", {
      for: function (t) {
        return o(U, t += "") ? U[t] : U[t] = R(t)
      }, keyFor: function (t) {
        if (!G(t)) throw TypeError(t + " is not a symbol!");
        for (var e in U) if (U[e] === t) return e
      }, useSetter: function () {
        V = !0
      }, useSimple: function () {
        V = !1
      }
    }), s(s.S + s.F * !J, "Object", {
      create: function (t, e) {
        return void 0 === e ? _(t) : $(_(t), e)
      },
      defineProperty: X,
      defineProperties: $,
      getOwnPropertyDescriptor: Z,
      getOwnPropertyNames: tt,
      getOwnPropertySymbols: et
    });
    var st = u((function () {
      P.f(1)
    }));
    s(s.S + s.F * st, "Object", {
      getOwnPropertySymbols: function (t) {
        return P.f(b(t))
      }
    }), N && s(s.S + s.F * (!J || u((function () {
      var t = R();
      return "[null]" != j([t]) || "{}" != j({a: t}) || "{}" != j(Object(t))
    }))), "JSON", {
      stringify: function (t) {
        for (var e, n, r = [t], o = 1; arguments.length > o;) r.push(arguments[o++]);
        if (n = e = r[1], (w(e) || void 0 !== t) && !G(t)) return v(e) || (e = function (t, e) {
          if ("function" == typeof n && (e = n.call(this, t, e)), !G(e)) return e
        }), r[1] = e, j.apply(N, r)
      }
    }), R[D][M] || n(12)(R[D], M, R[D].valueOf), l(R, "Symbol"), l(Math, "Math", !0), l(r.JSON, "JSON", !0)
  }, function (t, e, n) {
    "use strict";
    var r = n(1), o = n(13), i = n(11), s = n(135), a = n(33), c = n(4), u = n(40).f, f = n(28).f,
      l = n(8).f, h = n(136).trim, p = "Number", d = r[p], y = d, g = d.prototype,
      v = i(n(36)(g)) == p, m = "trim" in String.prototype, w = function (t) {
        var e = a(t, !1);
        if ("string" == typeof e && e.length > 2) {
          var n, r, o, i = (e = m ? e.trim() : h(e, 3)).charCodeAt(0);
          if (43 === i || 45 === i) {
            if (88 === (n = e.charCodeAt(2)) || 120 === n) return NaN
          } else if (48 === i) {
            switch (e.charCodeAt(1)) {
              case 66:
              case 98:
                r = 2, o = 49;
                break;
              case 79:
              case 111:
                r = 8, o = 55;
                break;
              default:
                return +e
            }
            for (var s, c = e.slice(2), u = 0, f = c.length; u < f; u++) if ((s = c.charCodeAt(u)) < 48 || s > o) return NaN;
            return parseInt(c, r)
          }
        }
        return +e
      };
    if (!d(" 0o1") || !d("0b1") || d("+0x1")) {
      d = function (t) {
        var e = arguments.length < 1 ? 0 : t, n = this;
        return n instanceof d && (v ? c((function () {
          g.valueOf.call(n)
        })) : i(n) != p) ? s(new y(w(e)), n, d) : w(e)
      };
      for (var b, x = n(7) ? u(y) : "MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","), S = 0; x.length > S; S++) o(y, b = x[S]) && !o(d, b) && l(d, b, f(y, b));
      d.prototype = g, g.constructor = d, n(10)(r, p, d)
    }
  }, function (t, e, n) {
    "use strict";
    var r, o, i = n(54), s = RegExp.prototype.exec, a = String.prototype.replace, c = s,
      u = "lastIndex",
      f = (r = /a/, o = /b*/g, s.call(r, "a"), s.call(o, "a"), 0 !== r[u] || 0 !== o[u]),
      l = void 0 !== /()??/.exec("")[1];
    (f || l) && (c = function (t) {
      var e, n, r, o, c = this;
      return l && (n = new RegExp("^" + c.source + "$(?!\\s)", i.call(c))), f && (e = c[u]), r = s.call(c, t), f && r && (c[u] = c.global ? r.index + r[0].length : e), l && r && r.length > 1 && a.call(r[0], n, (function () {
        for (o = 1; o < arguments.length - 2; o++) void 0 === arguments[o] && (r[o] = void 0)
      })), r
    }), t.exports = c
  }, function (t, e, n) {
    "use strict";
    var r = n(3);
    t.exports = function () {
      var t = r(this), e = "";
      return t.global && (e += "g"), t.ignoreCase && (e += "i"), t.multiline && (e += "m"), t.unicode && (e += "u"), t.sticky && (e += "y"), e
    }
  }, function (t, e) {
    e.L = {bit: 1}, e.M = {bit: 0}, e.Q = {bit: 3}, e.H = {bit: 2}, e.isValid = function (t) {
      return t && void 0 !== t.bit && t.bit >= 0 && t.bit < 4
    }, e.from = function (t, n) {
      if (e.isValid(t)) return t;
      try {
        return function (t) {
          if ("string" != typeof t) throw new Error("Param is not a string");
          switch (t.toLowerCase()) {
            case"l":
            case"low":
              return e.L;
            case"m":
            case"medium":
              return e.M;
            case"q":
            case"quartile":
              return e.Q;
            case"h":
            case"high":
              return e.H;
            default:
              throw new Error("Unknown EC Level: " + t)
          }
        }(t)
      } catch (t) {
        return n
      }
    }
  }, function (t, e, n) {
    var r;
    t.exports = (r = n(9), n(108), void (r.lib.Cipher || function (t) {
      var e = r, n = e.lib, o = n.Base, i = n.WordArray, s = n.BufferedBlockAlgorithm, a = e.enc,
        c = (a.Utf8, a.Base64), u = e.algo.EvpKDF, f = n.Cipher = s.extend({
          cfg: o.extend(),
          createEncryptor: function (t, e) {
            return this.create(this._ENC_XFORM_MODE, t, e)
          },
          createDecryptor: function (t, e) {
            return this.create(this._DEC_XFORM_MODE, t, e)
          },
          init: function (t, e, n) {
            this.cfg = this.cfg.extend(n), this._xformMode = t, this._key = e, this.reset()
          },
          reset: function () {
            s.reset.call(this), this._doReset()
          },
          process: function (t) {
            return this._append(t), this._process()
          },
          finalize: function (t) {
            return t && this._append(t), this._doFinalize()
          },
          keySize: 4,
          ivSize: 4,
          _ENC_XFORM_MODE: 1,
          _DEC_XFORM_MODE: 2,
          _createHelper: function () {
            function t(t) {
              return "string" == typeof t ? w : v
            }

            return function (e) {
              return {
                encrypt: function (n, r, o) {
                  return t(r).encrypt(e, n, r, o)
                }, decrypt: function (n, r, o) {
                  return t(r).decrypt(e, n, r, o)
                }
              }
            }
          }()
        }), l = (n.StreamCipher = f.extend({
          _doFinalize: function () {
            return this._process(!0)
          }, blockSize: 1
        }), e.mode = {}), h = n.BlockCipherMode = o.extend({
          createEncryptor: function (t, e) {
            return this.Encryptor.create(t, e)
          }, createDecryptor: function (t, e) {
            return this.Decryptor.create(t, e)
          }, init: function (t, e) {
            this._cipher = t, this._iv = e
          }
        }), p = l.CBC = function () {
          var e = h.extend();

          function n(e, n, r) {
            var o, i = this._iv;
            i ? (o = i, this._iv = t) : o = this._prevBlock;
            for (var s = 0; s < r; s++) e[n + s] ^= o[s]
          }

          return e.Encryptor = e.extend({
            processBlock: function (t, e) {
              var r = this._cipher, o = r.blockSize;
              n.call(this, t, e, o), r.encryptBlock(t, e), this._prevBlock = t.slice(e, e + o)
            }
          }), e.Decryptor = e.extend({
            processBlock: function (t, e) {
              var r = this._cipher, o = r.blockSize, i = t.slice(e, e + o);
              r.decryptBlock(t, e), n.call(this, t, e, o), this._prevBlock = i
            }
          }), e
        }(), d = (e.pad = {}).Pkcs7 = {
          pad: function (t, e) {
            for (var n = 4 * e, r = n - t.sigBytes % n, o = r << 24 | r << 16 | r << 8 | r, s = [], a = 0; a < r; a += 4) s.push(o);
            var c = i.create(s, r);
            t.concat(c)
          }, unpad: function (t) {
            var e = 255 & t.words[t.sigBytes - 1 >>> 2];
            t.sigBytes -= e
          }
        }, y = (n.BlockCipher = f.extend({
          cfg: f.cfg.extend({mode: p, padding: d}),
          reset: function () {
            var t;
            f.reset.call(this);
            var e = this.cfg, n = e.iv, r = e.mode;
            this._xformMode == this._ENC_XFORM_MODE ? t = r.createEncryptor : (t = r.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == t ? this._mode.init(this, n && n.words) : (this._mode = t.call(r, this, n && n.words), this._mode.__creator = t)
          },
          _doProcessBlock: function (t, e) {
            this._mode.processBlock(t, e)
          },
          _doFinalize: function () {
            var t, e = this.cfg.padding;
            return this._xformMode == this._ENC_XFORM_MODE ? (e.pad(this._data, this.blockSize), t = this._process(!0)) : (t = this._process(!0), e.unpad(t)), t
          },
          blockSize: 4
        }), n.CipherParams = o.extend({
          init: function (t) {
            this.mixIn(t)
          }, toString: function (t) {
            return (t || this.formatter).stringify(this)
          }
        })), g = (e.format = {}).OpenSSL = {
          stringify: function (t) {
            var e = t.ciphertext, n = t.salt;
            return (n ? i.create([1398893684, 1701076831]).concat(n).concat(e) : e).toString(c)
          }, parse: function (t) {
            var e, n = c.parse(t), r = n.words;
            return 1398893684 == r[0] && 1701076831 == r[1] && (e = i.create(r.slice(2, 4)), r.splice(0, 4), n.sigBytes -= 16), y.create({
              ciphertext: n,
              salt: e
            })
          }
        }, v = n.SerializableCipher = o.extend({
          cfg: o.extend({format: g}),
          encrypt: function (t, e, n, r) {
            r = this.cfg.extend(r);
            var o = t.createEncryptor(n, r), i = o.finalize(e), s = o.cfg;
            return y.create({
              ciphertext: i,
              key: n,
              iv: s.iv,
              algorithm: t,
              mode: s.mode,
              padding: s.padding,
              blockSize: t.blockSize,
              formatter: r.format
            })
          },
          decrypt: function (t, e, n, r) {
            return r = this.cfg.extend(r), e = this._parse(e, r.format), t.createDecryptor(n, r).finalize(e.ciphertext)
          },
          _parse: function (t, e) {
            return "string" == typeof t ? e.parse(t, this) : t
          }
        }), m = (e.kdf = {}).OpenSSL = {
          execute: function (t, e, n, r) {
            r || (r = i.random(8));
            var o = u.create({keySize: e + n}).compute(t, r), s = i.create(o.words.slice(e), 4 * n);
            return o.sigBytes = 4 * e, y.create({key: o, iv: s, salt: r})
          }
        }, w = n.PasswordBasedCipher = v.extend({
          cfg: v.cfg.extend({kdf: m}),
          encrypt: function (t, e, n, r) {
            var o = (r = this.cfg.extend(r)).kdf.execute(n, t.keySize, t.ivSize);
            r.iv = o.iv;
            var i = v.encrypt.call(this, t, e, o.key, r);
            return i.mixIn(o), i
          },
          decrypt: function (t, e, n, r) {
            r = this.cfg.extend(r), e = this._parse(e, r.format);
            var o = r.kdf.execute(n, t.keySize, t.ivSize, e.salt);
            return r.iv = o.iv, v.decrypt.call(this, t, e, o.key, r)
          }
        })
    }()))
  }, function (t, e, n) {
    var r;
    t.exports = (r = n(9), function () {
      var t = r, e = t.lib.WordArray;

      function n(t, n, r) {
        for (var o = [], i = 0, s = 0; s < n; s++) if (s % 4) {
          var a = r[t.charCodeAt(s - 1)] << s % 4 * 2 | r[t.charCodeAt(s)] >>> 6 - s % 4 * 2;
          o[i >>> 2] |= a << 24 - i % 4 * 8, i++
        }
        return e.create(o, i)
      }

      t.enc.Base64 = {
        stringify: function (t) {
          var e = t.words, n = t.sigBytes, r = this._map;
          t.clamp();
          for (var o = [], i = 0; i < n; i += 3) for (var s = (e[i >>> 2] >>> 24 - i % 4 * 8 & 255) << 16 | (e[i + 1 >>> 2] >>> 24 - (i + 1) % 4 * 8 & 255) << 8 | e[i + 2 >>> 2] >>> 24 - (i + 2) % 4 * 8 & 255, a = 0; a < 4 && i + .75 * a < n; a++) o.push(r.charAt(s >>> 6 * (3 - a) & 63));
          var c = r.charAt(64);
          if (c) for (; o.length % 4;) o.push(c);
          return o.join("")
        }, parse: function (t) {
          var e = t.length, r = this._map, o = this._reverseMap;
          if (!o) {
            o = this._reverseMap = [];
            for (var i = 0; i < r.length; i++) o[r.charCodeAt(i)] = i
          }
          var s = r.charAt(64);
          if (s) {
            var a = t.indexOf(s);
            -1 !== a && (e = a)
          }
          return n(t, e, o)
        }, _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
      }
    }(), r.enc.Base64)
  }, function (t, e, n) {
    var r;
    t.exports = (r = n(9), r.enc.Hex)
  }, function (t, e, n) {
    t.exports = !n(7) && !n(4)((function () {
      return 7 != Object.defineProperty(n(42)("div"), "a", {
        get: function () {
          return 7
        }
      }).a
    }))
  }, function (t, e, n) {
    var r = n(3);
    t.exports = function (t, e, n, o) {
      try {
        return o ? e(r(n)[0], n[1]) : e(n)
      } catch (e) {
        var i = t.return;
        throw void 0 !== i && r(i.call(t)), e
      }
    }
  }, function (t, e, n) {
    var r = n(27), o = n(0)("iterator"), i = Array.prototype;
    t.exports = function (t) {
      return void 0 !== t && (r.Array === t || i[o] === t)
    }
  }, function (t, e, n) {
    var r = n(31), o = n(0)("iterator"), i = n(27);
    t.exports = n(16).getIteratorMethod = function (t) {
      if (null != t) return t[o] || t["@@iterator"] || i[r(t)]
    }
  }, function (t, e, n) {
    var r = n(3), o = n(22), i = n(0)("species");
    t.exports = function (t, e) {
      var n, s = r(t).constructor;
      return void 0 === s || null == (n = r(s)[i]) ? e : o(n)
    }
  }, function (t, e, n) {
    var r, o, i, s = n(17), a = n(65), c = n(44), u = n(42), f = n(1), l = f.process,
      h = f.setImmediate, p = f.clearImmediate, d = f.MessageChannel, y = f.Dispatch, g = 0, v = {},
      m = "onreadystatechange", w = function () {
        var t = +this;
        if (v.hasOwnProperty(t)) {
          var e = v[t];
          delete v[t], e()
        }
      }, b = function (t) {
        w.call(t.data)
      };
    h && p || (h = function (t) {
      for (var e = [], n = 1; arguments.length > n;) e.push(arguments[n++]);
      return v[++g] = function () {
        a("function" == typeof t ? t : Function(t), e)
      }, r(g), g
    }, p = function (t) {
      delete v[t]
    }, "process" == n(11)(l) ? r = function (t) {
      l.nextTick(s(w, t, 1))
    } : y && y.now ? r = function (t) {
      y.now(s(w, t, 1))
    } : d ? (i = (o = new d).port2, o.port1.onmessage = b, r = s(i.postMessage, i, 1)) : f.addEventListener && "function" == typeof postMessage && !f.importScripts ? (r = function (t) {
      f.postMessage(t + "", "*")
    }, f.addEventListener("message", b, !1)) : r = m in u("script") ? function (t) {
      c.appendChild(u("script"))[m] = function () {
        c.removeChild(this), w.call(t)
      }
    } : function (t) {
      setTimeout(s(w, t, 1), 0)
    }), t.exports = {set: h, clear: p}
  }, function (t, e) {
    t.exports = function (t, e, n) {
      var r = void 0 === n;
      switch (e.length) {
        case 0:
          return r ? t() : t.call(n);
        case 1:
          return r ? t(e[0]) : t.call(n, e[0]);
        case 2:
          return r ? t(e[0], e[1]) : t.call(n, e[0], e[1]);
        case 3:
          return r ? t(e[0], e[1], e[2]) : t.call(n, e[0], e[1], e[2]);
        case 4:
          return r ? t(e[0], e[1], e[2], e[3]) : t.call(n, e[0], e[1], e[2], e[3])
      }
      return t.apply(n, e)
    }
  }, function (t, e, n) {
    "use strict";
    var r = n(22);

    function o(t) {
      var e, n;
      this.promise = new t((function (t, r) {
        if (void 0 !== e || void 0 !== n) throw TypeError("Bad Promise constructor");
        e = t, n = r
      })), this.resolve = r(e), this.reject = r(n)
    }

    t.exports.f = function (t) {
      return new o(t)
    }
  }, function (t, e, n) {
    var r = n(0)("iterator"), o = !1;
    try {
      var i = [7][r]();
      i.return = function () {
        o = !0
      }, Array.from(i, (function () {
        throw 2
      }))
    } catch (t) {
    }
    t.exports = function (t, e) {
      if (!e && !o) return !1;
      var n = !1;
      try {
        var i = [7], s = i[r]();
        s.next = function () {
          return {done: n = !0}
        }, i[r] = function () {
          return s
        }, t(i)
      } catch (t) {
      }
      return n
    }
  }, function (t, e, n) {
    "use strict";
    var r = n(2), o = n(44), i = n(11), s = n(69), a = n(18), c = [].slice;
    r(r.P + r.F * n(4)((function () {
      o && c.call(o)
    })), "Array", {
      slice: function (t, e) {
        var n = a(this.length), r = i(this);
        if (e = void 0 === e ? n : e, "Array" == r) return c.call(this, t, e);
        for (var o = s(t, n), u = s(e, n), f = a(u - o), l = new Array(f), h = 0; h < f; h++) l[h] = "String" == r ? this.charAt(o + h) : this[o + h];
        return l
      }
    })
  }, function (t, e, n) {
    var r = n(34), o = Math.max, i = Math.min;
    t.exports = function (t, e) {
      return (t = r(t)) < 0 ? o(t + e, 0) : i(t, e)
    }
  }, function (t, e, n) {
    "use strict";
    var r = n(2), o = n(123), i = "includes";
    r(r.P + r.F * n(124)(i), "String", {
      includes: function (t) {
        return !!~o(this, t, i).indexOf(t, arguments.length > 1 ? arguments[1] : void 0)
      }
    })
  }, function (t, e, n) {
    var r = n(5), o = n(11), i = n(0)("match");
    t.exports = function (t) {
      var e;
      return r(t) && (void 0 !== (e = t[i]) ? !!e : "RegExp" == o(t))
    }
  }, function (t, e, n) {
    "use strict";
    var r = n(2), o = n(73)(!0);
    r(r.P, "Array", {
      includes: function (t) {
        return o(this, t, arguments.length > 1 ? arguments[1] : void 0)
      }
    }), n(74)("includes")
  }, function (t, e, n) {
    var r = n(14), o = n(18), i = n(69);
    t.exports = function (t) {
      return function (e, n, s) {
        var a, c = r(e), u = o(c.length), f = i(s, u);
        if (t && n != n) {
          for (; u > f;) if ((a = c[f++]) != a) return !0
        } else for (; u > f; f++) if ((t || f in c) && c[f] === n) return t || f || 0;
        return !t && -1
      }
    }
  }, function (t, e, n) {
    var r = n(0)("unscopables"), o = Array.prototype;
    null == o[r] && n(12)(o, r, {}), t.exports = function (t) {
      o[r][t] = !0
    }
  }, function (t, e, n) {
    "use strict";
    var r = n(2), o = n(76)(1);
    r(r.P + r.F * !n(78)([].map, !0), "Array", {
      map: function (t) {
        return o(this, t, arguments[1])
      }
    })
  }, function (t, e, n) {
    var r = n(17), o = n(45), i = n(15), s = n(18), a = n(125);
    t.exports = function (t, e) {
      var n = 1 == t, c = 2 == t, u = 3 == t, f = 4 == t, l = 6 == t, h = 5 == t || l, p = e || a;
      return function (e, a, d) {
        for (var y, g, v = i(e), m = o(v), w = r(a, d, 3), b = s(m.length), x = 0, S = n ? p(e, b) : c ? p(e, 0) : void 0; b > x; x++) if ((h || x in m) && (g = w(y = m[x], x, v), t)) if (n) S[x] = g; else if (g) switch (t) {
          case 3:
            return !0;
          case 5:
            return y;
          case 6:
            return x;
          case 2:
            S.push(y)
        } else if (f) return !1;
        return l ? -1 : u || f ? f : S
      }
    }
  }, function (t, e, n) {
    var r = n(11);
    t.exports = Array.isArray || function (t) {
      return "Array" == r(t)
    }
  }, function (t, e, n) {
    "use strict";
    var r = n(4);
    t.exports = function (t, e) {
      return !!t && r((function () {
        e ? t.call(null, (function () {
        }), 1) : t.call(null)
      }))
    }
  }, function (t, e, n) {
    var r = n(34), o = n(19);
    t.exports = function (t) {
      return function (e, n) {
        var i, s, a = String(o(e)), c = r(n), u = a.length;
        return c < 0 || c >= u ? t ? "" : void 0 : (i = a.charCodeAt(c)) < 55296 || i > 56319 || c + 1 === u || (s = a.charCodeAt(c + 1)) < 56320 || s > 57343 ? t ? a.charAt(c) : i : t ? a.slice(c, c + 2) : s - 56320 + (i - 55296 << 10) + 65536
      }
    }
  }, function (t, e, n) {
    "use strict";
    var r = n(24), o = n(2), i = n(10), s = n(12), a = n(27), c = n(127), u = n(35), f = n(82),
      l = n(0)("iterator"), h = !([].keys && "next" in [].keys()), p = "keys", d = "values",
      y = function () {
        return this
      };
    t.exports = function (t, e, n, g, v, m, w) {
      c(n, e, g);
      var b, x, S, E = function (t) {
          if (!h && t in P) return P[t];
          switch (t) {
            case p:
            case d:
              return function () {
                return new n(this, t)
              }
          }
          return function () {
            return new n(this, t)
          }
        }, _ = e + " Iterator", O = v == d, T = !1, P = t.prototype,
        A = P[l] || P["@@iterator"] || v && P[v], k = A || E(v),
        L = v ? O ? E("entries") : k : void 0, C = "Array" == e && P.entries || A;
      if (C && (S = f(C.call(new t))) !== Object.prototype && S.next && (u(S, _, !0), r || "function" == typeof S[l] || s(S, l, y)), O && A && A.name !== d && (T = !0, k = function () {
        return A.call(this)
      }), r && !w || !h && !T && P[l] || s(P, l, k), a[e] = k, a[_] = y, v) if (b = {
        values: O ? k : E(d),
        keys: m ? k : E(p),
        entries: L
      }, w) for (x in b) x in P || i(P, x, b[x]); else o(o.P + o.F * (h || T), e, b);
      return b
    }
  }, function (t, e, n) {
    var r = n(13), o = n(14), i = n(73)(!1), s = n(47)("IE_PROTO");
    t.exports = function (t, e) {
      var n, a = o(t), c = 0, u = [];
      for (n in a) n != s && r(a, n) && u.push(n);
      for (; e.length > c;) r(a, n = e[c++]) && (~i(u, n) || u.push(n));
      return u
    }
  }, function (t, e, n) {
    var r = n(13), o = n(15), i = n(47)("IE_PROTO"), s = Object.prototype;
    t.exports = Object.getPrototypeOf || function (t) {
      return t = o(t), r(t, i) ? t[i] : "function" == typeof t.constructor && t instanceof t.constructor ? t.constructor.prototype : t instanceof Object ? s : null
    }
  }, function (t, e, n) {
    var r = n(2);
    r(r.S, "Object", {setPrototypeOf: n(84).set})
  }, function (t, e, n) {
    var r = n(5), o = n(3), i = function (t, e) {
      if (o(t), !r(e) && null !== e) throw TypeError(e + ": can't set as prototype!")
    };
    t.exports = {
      set: Object.setPrototypeOf || ("__proto__" in {} ? function (t, e, r) {
        try {
          (r = n(17)(Function.call, n(28).f(Object.prototype, "__proto__").set, 2))(t, []), e = !(t instanceof Array)
        } catch (t) {
          e = !0
        }
        return function (t, n) {
          return i(t, n), e ? t.__proto__ = n : r(t, n), t
        }
      }({}, !1) : void 0), check: i
    }
  }, function (t, e, n) {
    var r = n(15), o = n(82);
    n(50)("getPrototypeOf", (function () {
      return function (t) {
        return o(r(t))
      }
    }))
  }, function (t, e, n) {
    e.f = n(0)
  }, function (t, e, n) {
    var r = n(1), o = n(16), i = n(24), s = n(86), a = n(8).f;
    t.exports = function (t) {
      var e = o.Symbol || (o.Symbol = i ? {} : r.Symbol || {});
      "_" == t.charAt(0) || t in e || a(e, t, {value: s.f(t)})
    }
  }, function (t, e, n) {
    n(87)("asyncIterator")
  }, function (t, e, n) {
    var r = n(8).f, o = Function.prototype, i = /^\s*function ([^ (]*)/, s = "name";
    s in o || n(7) && r(o, s, {
      configurable: !0, get: function () {
        try {
          return ("" + this).match(i)[1]
        } catch (t) {
          return ""
        }
      }
    })
  }, function (t, e, n) {
    "use strict";
    var r = n(8), o = n(26);
    t.exports = function (t, e, n) {
      e in t ? r.f(t, e, o(0, n)) : t[e] = n
    }
  }, function (t, e, n) {
    var r = n(15), o = n(23);
    n(50)("keys", (function () {
      return function (t) {
        return o(r(t))
      }
    }))
  }, function (t, e, n) {
    "use strict";
    t.exports = function (t, e) {
      return function () {
        for (var n = new Array(arguments.length), r = 0; r < n.length; r++) n[r] = arguments[r];
        return t.apply(e, n)
      }
    }
  }, function (t, e, n) {
    "use strict";
    var r = n(6);

    function o(t) {
      return encodeURIComponent(t).replace(/%40/gi, "@").replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]")
    }

    t.exports = function (t, e, n) {
      if (!e) return t;
      var i;
      if (n) i = n(e); else if (r.isURLSearchParams(e)) i = e.toString(); else {
        var s = [];
        r.forEach(e, (function (t, e) {
          null != t && (r.isArray(t) ? e += "[]" : t = [t], r.forEach(t, (function (t) {
            r.isDate(t) ? t = t.toISOString() : r.isObject(t) && (t = JSON.stringify(t)), s.push(o(e) + "=" + o(t))
          })))
        })), i = s.join("&")
      }
      if (i) {
        var a = t.indexOf("#");
        -1 !== a && (t = t.slice(0, a)), t += (-1 === t.indexOf("?") ? "?" : "&") + i
      }
      return t
    }
  }, function (t, e, n) {
    "use strict";
    t.exports = function (t) {
      return !(!t || !t.__CANCEL__)
    }
  }, function (t, e, n) {
    "use strict";
    (function (e) {
      var r = n(6), o = n(149), i = {"Content-Type": "application/x-www-form-urlencoded"};

      function s(t, e) {
        !r.isUndefined(t) && r.isUndefined(t["Content-Type"]) && (t["Content-Type"] = e)
      }

      var a, c = {
        adapter: (("undefined" != typeof XMLHttpRequest || void 0 !== e && "[object process]" === Object.prototype.toString.call(e)) && (a = n(96)), a),
        transformRequest: [function (t, e) {
          return o(e, "Accept"), o(e, "Content-Type"), r.isFormData(t) || r.isArrayBuffer(t) || r.isBuffer(t) || r.isStream(t) || r.isFile(t) || r.isBlob(t) ? t : r.isArrayBufferView(t) ? t.buffer : r.isURLSearchParams(t) ? (s(e, "application/x-www-form-urlencoded;charset=utf-8"), t.toString()) : r.isObject(t) ? (s(e, "application/json;charset=utf-8"), JSON.stringify(t)) : t
        }],
        transformResponse: [function (t) {
          if ("string" == typeof t) try {
            t = JSON.parse(t)
          } catch (t) {
          }
          return t
        }],
        timeout: 0,
        xsrfCookieName: "XSRF-TOKEN",
        xsrfHeaderName: "X-XSRF-TOKEN",
        maxContentLength: -1,
        validateStatus: function (t) {
          return t >= 200 && t < 300
        }
      };
      c.headers = {common: {Accept: "application/json, text/plain, */*"}}, r.forEach(["delete", "get", "head"], (function (t) {
        c.headers[t] = {}
      })), r.forEach(["post", "put", "patch"], (function (t) {
        c.headers[t] = r.merge(i)
      })), t.exports = c
    }).call(this, n(148))
  }, function (t, e, n) {
    "use strict";
    var r = n(6), o = n(150), i = n(93), s = n(152), a = n(155), c = n(156), u = n(97);
    t.exports = function (t) {
      return new Promise((function (e, f) {
        var l = t.data, h = t.headers;
        r.isFormData(l) && delete h["Content-Type"];
        var p = new XMLHttpRequest;
        if (t.auth) {
          var d = t.auth.username || "", y = t.auth.password || "";
          h.Authorization = "Basic " + btoa(d + ":" + y)
        }
        var g = s(t.baseURL, t.url);
        if (p.open(t.method.toUpperCase(), i(g, t.params, t.paramsSerializer), !0), p.timeout = t.timeout, p.onreadystatechange = function () {
          if (p && 4 === p.readyState && (0 !== p.status || p.responseURL && 0 === p.responseURL.indexOf("file:"))) {
            var n = "getAllResponseHeaders" in p ? a(p.getAllResponseHeaders()) : null, r = {
              data: t.responseType && "text" !== t.responseType ? p.response : p.responseText,
              status: p.status,
              statusText: p.statusText,
              headers: n,
              config: t,
              request: p
            };
            o(e, f, r), p = null
          }
        }, p.onabort = function () {
          p && (f(u("Request aborted", t, "ECONNABORTED", p)), p = null)
        }, p.onerror = function () {
          f(u("Network Error", t, null, p)), p = null
        }, p.ontimeout = function () {
          var e = "timeout of " + t.timeout + "ms exceeded";
          t.timeoutErrorMessage && (e = t.timeoutErrorMessage), f(u(e, t, "ECONNABORTED", p)), p = null
        }, r.isStandardBrowserEnv()) {
          var v = n(157),
            m = (t.withCredentials || c(g)) && t.xsrfCookieName ? v.read(t.xsrfCookieName) : void 0;
          m && (h[t.xsrfHeaderName] = m)
        }
        if ("setRequestHeader" in p && r.forEach(h, (function (t, e) {
          void 0 === l && "content-type" === e.toLowerCase() ? delete h[e] : p.setRequestHeader(e, t)
        })), r.isUndefined(t.withCredentials) || (p.withCredentials = !!t.withCredentials), t.responseType) try {
          p.responseType = t.responseType
        } catch (e) {
          if ("json" !== t.responseType) throw e
        }
        "function" == typeof t.onDownloadProgress && p.addEventListener("progress", t.onDownloadProgress), "function" == typeof t.onUploadProgress && p.upload && p.upload.addEventListener("progress", t.onUploadProgress), t.cancelToken && t.cancelToken.promise.then((function (t) {
          p && (p.abort(), f(t), p = null)
        })), void 0 === l && (l = null), p.send(l)
      }))
    }
  }, function (t, e, n) {
    "use strict";
    var r = n(151);
    t.exports = function (t, e, n, o, i) {
      var s = new Error(t);
      return r(s, e, n, o, i)
    }
  }, function (t, e, n) {
    "use strict";
    var r = n(6);
    t.exports = function (t, e) {
      e = e || {};
      var n = {}, o = ["url", "method", "params", "data"], i = ["headers", "auth", "proxy"],
        s = ["baseURL", "url", "transformRequest", "transformResponse", "paramsSerializer", "timeout", "withCredentials", "adapter", "responseType", "xsrfCookieName", "xsrfHeaderName", "onUploadProgress", "onDownloadProgress", "maxContentLength", "validateStatus", "maxRedirects", "httpAgent", "httpsAgent", "cancelToken", "socketPath"];
      r.forEach(o, (function (t) {
        void 0 !== e[t] && (n[t] = e[t])
      })), r.forEach(i, (function (o) {
        r.isObject(e[o]) ? n[o] = r.deepMerge(t[o], e[o]) : void 0 !== e[o] ? n[o] = e[o] : r.isObject(t[o]) ? n[o] = r.deepMerge(t[o]) : void 0 !== t[o] && (n[o] = t[o])
      })), r.forEach(s, (function (r) {
        void 0 !== e[r] ? n[r] = e[r] : void 0 !== t[r] && (n[r] = t[r])
      }));
      var a = o.concat(i).concat(s), c = Object.keys(e).filter((function (t) {
        return -1 === a.indexOf(t)
      }));
      return r.forEach(c, (function (r) {
        void 0 !== e[r] ? n[r] = e[r] : void 0 !== t[r] && (n[r] = t[r])
      })), n
    }
  }, function (t, e, n) {
    "use strict";

    function r(t) {
      this.message = t
    }

    r.prototype.toString = function () {
      return "Cancel" + (this.message ? ": " + this.message : "")
    }, r.prototype.__CANCEL__ = !0, t.exports = r
  }, function (t, e) {
    var n;
    n = function () {
      return this
    }();
    try {
      n = n || new Function("return this")()
    } catch (t) {
      "object" == typeof window && (n = window)
    }
    t.exports = n
  }, function (t, e, n) {
    "use strict";
    var r = n(79)(!0);
    t.exports = function (t, e, n) {
      return e + (n ? r(t, e).length : 1)
    }
  }, function (t, e, n) {
    "use strict";
    var r = n(31), o = RegExp.prototype.exec;
    t.exports = function (t, e) {
      var n = t.exec;
      if ("function" == typeof n) {
        var i = n.call(t, e);
        if ("object" != typeof i) throw new TypeError("RegExp exec method returned something other than an Object or null");
        return i
      }
      if ("RegExp" !== r(t)) throw new TypeError("RegExp#exec called on incompatible receiver");
      return o.call(t, e)
    }
  }, function (t, e, n) {
    "use strict";
    n(162);
    var r = n(10), o = n(12), i = n(4), s = n(19), a = n(0), c = n(53), u = a("species"),
      f = !i((function () {
        var t = /./;
        return t.exec = function () {
          var t = [];
          return t.groups = {a: "7"}, t
        }, "7" !== "".replace(t, "$<a>")
      })), l = function () {
        var t = /(?:)/, e = t.exec;
        t.exec = function () {
          return e.apply(this, arguments)
        };
        var n = "ab".split(t);
        return 2 === n.length && "a" === n[0] && "b" === n[1]
      }();
    t.exports = function (t, e, n) {
      var h = a(t), p = !i((function () {
        var e = {};
        return e[h] = function () {
          return 7
        }, 7 != ""[t](e)
      })), d = p ? !i((function () {
        var e = !1, n = /a/;
        return n.exec = function () {
          return e = !0, null
        }, "split" === t && (n.constructor = {}, n.constructor[u] = function () {
          return n
        }), n[h](""), !e
      })) : void 0;
      if (!p || !d || "replace" === t && !f || "split" === t && !l) {
        var y = /./[h], g = n(s, h, ""[t], (function (t, e, n, r, o) {
          return e.exec === c ? p && !o ? {done: !0, value: y.call(e, n, r)} : {
            done: !0,
            value: t.call(n, e, r)
          } : {done: !1}
        })), v = g[0], m = g[1];
        r(String.prototype, t, v), o(RegExp.prototype, h, 2 == e ? function (t, e) {
          return m.call(t, this, e)
        } : function (t) {
          return m.call(t, this)
        })
      }
    }
  }, function (t, e, n) {
    const r = n(55),
      o = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 2, 2, 4, 1, 2, 4, 4, 2, 4, 4, 4, 2, 4, 6, 5, 2, 4, 6, 6, 2, 5, 8, 8, 4, 5, 8, 8, 4, 5, 8, 11, 4, 8, 10, 11, 4, 9, 12, 16, 4, 9, 16, 16, 6, 10, 12, 18, 6, 10, 17, 16, 6, 11, 16, 19, 6, 13, 18, 21, 7, 14, 21, 25, 8, 16, 20, 25, 8, 17, 23, 25, 9, 17, 23, 34, 9, 18, 25, 30, 10, 20, 27, 32, 12, 21, 29, 35, 12, 23, 34, 37, 12, 25, 34, 40, 13, 26, 35, 42, 14, 28, 38, 45, 15, 29, 40, 48, 16, 31, 43, 51, 17, 33, 45, 54, 18, 35, 48, 57, 19, 37, 51, 60, 19, 38, 53, 63, 20, 40, 56, 66, 21, 43, 59, 70, 22, 45, 62, 74, 24, 47, 65, 77, 25, 49, 68, 81],
      i = [7, 10, 13, 17, 10, 16, 22, 28, 15, 26, 36, 44, 20, 36, 52, 64, 26, 48, 72, 88, 36, 64, 96, 112, 40, 72, 108, 130, 48, 88, 132, 156, 60, 110, 160, 192, 72, 130, 192, 224, 80, 150, 224, 264, 96, 176, 260, 308, 104, 198, 288, 352, 120, 216, 320, 384, 132, 240, 360, 432, 144, 280, 408, 480, 168, 308, 448, 532, 180, 338, 504, 588, 196, 364, 546, 650, 224, 416, 600, 700, 224, 442, 644, 750, 252, 476, 690, 816, 270, 504, 750, 900, 300, 560, 810, 960, 312, 588, 870, 1050, 336, 644, 952, 1110, 360, 700, 1020, 1200, 390, 728, 1050, 1260, 420, 784, 1140, 1350, 450, 812, 1200, 1440, 480, 868, 1290, 1530, 510, 924, 1350, 1620, 540, 980, 1440, 1710, 570, 1036, 1530, 1800, 570, 1064, 1590, 1890, 600, 1120, 1680, 1980, 630, 1204, 1770, 2100, 660, 1260, 1860, 2220, 720, 1316, 1950, 2310, 750, 1372, 2040, 2430];
    e.getBlocksCount = function (t, e) {
      switch (e) {
        case r.L:
          return o[4 * (t - 1) + 0];
        case r.M:
          return o[4 * (t - 1) + 1];
        case r.Q:
          return o[4 * (t - 1) + 2];
        case r.H:
          return o[4 * (t - 1) + 3];
        default:
          return
      }
    }, e.getTotalCodewordsCount = function (t, e) {
      switch (e) {
        case r.L:
          return i[4 * (t - 1) + 0];
        case r.M:
          return i[4 * (t - 1) + 1];
        case r.Q:
          return i[4 * (t - 1) + 2];
        case r.H:
          return i[4 * (t - 1) + 3];
        default:
          return
      }
    }
  }, function (t, e) {
    e.isValid = function (t) {
      return !isNaN(t) && t >= 1 && t <= 40
    }
  }, function (t, e) {
    const n = "[0-9]+";
    let r = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
    r = r.replace(/u/g, "\\u");
    const o = "(?:(?![A-Z0-9 $%*+\\-./:]|" + r + ")(?:.|[\r\n]))+";
    e.KANJI = new RegExp(r, "g"), e.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g"), e.BYTE = new RegExp(o, "g"), e.NUMERIC = new RegExp(n, "g"), e.ALPHANUMERIC = new RegExp("[A-Z $%*+\\-./:]+", "g");
    const i = new RegExp("^" + r + "$"), s = new RegExp("^" + n + "$"),
      a = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
    e.testKanji = function (t) {
      return i.test(t)
    }, e.testNumeric = function (t) {
      return s.test(t)
    }, e.testAlphanumeric = function (t) {
      return a.test(t)
    }
  }, function (t, e) {
    function n(t) {
      if ("number" == typeof t && (t = t.toString()), "string" != typeof t) throw new Error("Color should be defined as hex string");
      let e = t.slice().replace("#", "").split("");
      if (e.length < 3 || 5 === e.length || e.length > 8) throw new Error("Invalid hex color: " + t);
      3 !== e.length && 4 !== e.length || (e = Array.prototype.concat.apply([], e.map((function (t) {
        return [t, t]
      })))), 6 === e.length && e.push("F", "F");
      const n = parseInt(e.join(""), 16);
      return {
        r: n >> 24 & 255,
        g: n >> 16 & 255,
        b: n >> 8 & 255,
        a: 255 & n,
        hex: "#" + e.slice(0, 6).join("")
      }
    }

    e.getOptions = function (t) {
      t || (t = {}), t.color || (t.color = {});
      const e = void 0 === t.margin || null === t.margin || t.margin < 0 ? 4 : t.margin,
        r = t.width && t.width >= 21 ? t.width : void 0, o = t.scale || 4;
      return {
        width: r,
        scale: r ? 4 : o,
        margin: e,
        color: {dark: n(t.color.dark || "#000000ff"), light: n(t.color.light || "#ffffffff")},
        type: t.type,
        rendererOpts: t.rendererOpts || {}
      }
    }, e.getScale = function (t, e) {
      return e.width && e.width >= t + 2 * e.margin ? e.width / (t + 2 * e.margin) : e.scale
    }, e.getImageWidth = function (t, n) {
      const r = e.getScale(t, n);
      return Math.floor((t + 2 * n.margin) * r)
    }, e.qrToImageData = function (t, n, r) {
      const o = n.modules.size, i = n.modules.data, s = e.getScale(o, r),
        a = Math.floor((o + 2 * r.margin) * s), c = r.margin * s, u = [r.color.light, r.color.dark];
      for (let e = 0; e < a; e++) for (let n = 0; n < a; n++) {
        let f = 4 * (e * a + n), l = r.color.light;
        if (e >= c && n >= c && e < a - c && n < a - c) {
          l = u[i[Math.floor((e - c) / s) * o + Math.floor((n - c) / s)] ? 1 : 0]
        }
        t[f++] = l.r, t[f++] = l.g, t[f++] = l.b, t[f] = l.a
      }
    }
  }, function (t, e, n) {
    var r, o, i, s, a, c, u, f;
    t.exports = (f = n(9), n(193), n(194), o = (r = f).lib, i = o.Base, s = o.WordArray, a = r.algo, c = a.MD5, u = a.EvpKDF = i.extend({
      cfg: i.extend({
        keySize: 4,
        hasher: c,
        iterations: 1
      }), init: function (t) {
        this.cfg = this.cfg.extend(t)
      }, compute: function (t, e) {
        for (var n, r = this.cfg, o = r.hasher.create(), i = s.create(), a = i.words, c = r.keySize, u = r.iterations; a.length < c;) {
          n && o.update(n), n = o.update(t).finalize(e), o.reset();
          for (var f = 1; f < u; f++) n = o.finalize(n), o.reset();
          i.concat(n)
        }
        return i.sigBytes = 4 * c, i
      }
    }), r.EvpKDF = function (t, e, n) {
      return u.create(n).compute(t, e)
    }, f.EvpKDF)
  }, function (t, e, n) {
    const r = n(168), o = n(169), i = n(187), s = n(188);

    function a(t, e, n, i, s) {
      const a = [].slice.call(arguments, 1), c = a.length, u = "function" == typeof a[c - 1];
      if (!u && !r()) throw new Error("Callback required as last argument");
      if (!u) {
        if (c < 1) throw new Error("Too few arguments provided");
        return 1 === c ? (n = e, e = i = void 0) : 2 !== c || e.getContext || (i = n, n = e, e = void 0), new Promise((function (r, s) {
          try {
            const s = o.create(n, i);
            r(t(s, e, i))
          } catch (t) {
            s(t)
          }
        }))
      }
      if (c < 2) throw new Error("Too few arguments provided");
      2 === c ? (s = n, n = e, e = i = void 0) : 3 === c && (e.getContext && void 0 === s ? (s = i, i = void 0) : (s = i, i = n, n = e, e = void 0));
      try {
        const r = o.create(n, i);
        s(null, t(r, e, i))
      } catch (t) {
        s(t)
      }
    }

    e.create = o.create, e.toCanvas = a.bind(null, i.render), e.toDataURL = a.bind(null, i.renderToDataURL), e.toString = a.bind(null, (function (t, e, n) {
      return s.render(t, n)
    }))
  }, function (t, e, n) {
    var r;
    t.exports = (r = n(9), n(57), n(192), n(108), n(56), function () {
      var t = r, e = t.lib.BlockCipher, n = t.algo, o = [], i = [], s = [], a = [], c = [], u = [],
        f = [], l = [], h = [], p = [];
      !function () {
        for (var t = [], e = 0; e < 256; e++) t[e] = e < 128 ? e << 1 : e << 1 ^ 283;
        var n = 0, r = 0;
        for (e = 0; e < 256; e++) {
          var d = r ^ r << 1 ^ r << 2 ^ r << 3 ^ r << 4;
          d = d >>> 8 ^ 255 & d ^ 99, o[n] = d, i[d] = n;
          var y = t[n], g = t[y], v = t[g], m = 257 * t[d] ^ 16843008 * d;
          s[n] = m << 24 | m >>> 8, a[n] = m << 16 | m >>> 16, c[n] = m << 8 | m >>> 24, u[n] = m, m = 16843009 * v ^ 65537 * g ^ 257 * y ^ 16843008 * n, f[d] = m << 24 | m >>> 8, l[d] = m << 16 | m >>> 16, h[d] = m << 8 | m >>> 24, p[d] = m, n ? (n = y ^ t[t[t[v ^ y]]], r ^= t[t[r]]) : n = r = 1
        }
      }();
      var d = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], y = n.AES = e.extend({
        _doReset: function () {
          if (!this._nRounds || this._keyPriorReset !== this._key) {
            for (var t = this._keyPriorReset = this._key, e = t.words, n = t.sigBytes / 4, r = 4 * ((this._nRounds = n + 6) + 1), i = this._keySchedule = [], s = 0; s < r; s++) s < n ? i[s] = e[s] : (u = i[s - 1], s % n ? n > 6 && s % n == 4 && (u = o[u >>> 24] << 24 | o[u >>> 16 & 255] << 16 | o[u >>> 8 & 255] << 8 | o[255 & u]) : (u = o[(u = u << 8 | u >>> 24) >>> 24] << 24 | o[u >>> 16 & 255] << 16 | o[u >>> 8 & 255] << 8 | o[255 & u], u ^= d[s / n | 0] << 24), i[s] = i[s - n] ^ u);
            for (var a = this._invKeySchedule = [], c = 0; c < r; c++) {
              if (s = r - c, c % 4) var u = i[s]; else u = i[s - 4];
              a[c] = c < 4 || s <= 4 ? u : f[o[u >>> 24]] ^ l[o[u >>> 16 & 255]] ^ h[o[u >>> 8 & 255]] ^ p[o[255 & u]]
            }
          }
        }, encryptBlock: function (t, e) {
          this._doCryptBlock(t, e, this._keySchedule, s, a, c, u, o)
        }, decryptBlock: function (t, e) {
          var n = t[e + 1];
          t[e + 1] = t[e + 3], t[e + 3] = n, this._doCryptBlock(t, e, this._invKeySchedule, f, l, h, p, i), n = t[e + 1], t[e + 1] = t[e + 3], t[e + 3] = n
        }, _doCryptBlock: function (t, e, n, r, o, i, s, a) {
          for (var c = this._nRounds, u = t[e] ^ n[0], f = t[e + 1] ^ n[1], l = t[e + 2] ^ n[2], h = t[e + 3] ^ n[3], p = 4, d = 1; d < c; d++) {
            var y = r[u >>> 24] ^ o[f >>> 16 & 255] ^ i[l >>> 8 & 255] ^ s[255 & h] ^ n[p++],
              g = r[f >>> 24] ^ o[l >>> 16 & 255] ^ i[h >>> 8 & 255] ^ s[255 & u] ^ n[p++],
              v = r[l >>> 24] ^ o[h >>> 16 & 255] ^ i[u >>> 8 & 255] ^ s[255 & f] ^ n[p++],
              m = r[h >>> 24] ^ o[u >>> 16 & 255] ^ i[f >>> 8 & 255] ^ s[255 & l] ^ n[p++];
            u = y, f = g, l = v, h = m
          }
          y = (a[u >>> 24] << 24 | a[f >>> 16 & 255] << 16 | a[l >>> 8 & 255] << 8 | a[255 & h]) ^ n[p++], g = (a[f >>> 24] << 24 | a[l >>> 16 & 255] << 16 | a[h >>> 8 & 255] << 8 | a[255 & u]) ^ n[p++], v = (a[l >>> 24] << 24 | a[h >>> 16 & 255] << 16 | a[u >>> 8 & 255] << 8 | a[255 & f]) ^ n[p++], m = (a[h >>> 24] << 24 | a[u >>> 16 & 255] << 16 | a[f >>> 8 & 255] << 8 | a[255 & l]) ^ n[p++], t[e] = y, t[e + 1] = g, t[e + 2] = v, t[e + 3] = m
        }, keySize: 8
      });
      t.AES = e._createHelper(y)
    }(), r.AES)
  }, function (t, e, n) {
    var r;
    t.exports = (r = n(9), r.enc.Utf8)
  }, function (t, e, n) {
    var r, o;
    t.exports = (o = n(9), n(56), o.mode.ECB = ((r = o.lib.BlockCipherMode.extend()).Encryptor = r.extend({
      processBlock: function (t, e) {
        this._cipher.encryptBlock(t, e)
      }
    }), r.Decryptor = r.extend({
      processBlock: function (t, e) {
        this._cipher.decryptBlock(t, e)
      }
    }), r), o.mode.ECB)
  }, function (t, e, n) {
    var r;
    t.exports = (r = n(9), n(56), r.pad.Pkcs7)
  }, function (t, e, n) {
    t.exports = n(32)("native-function-to-string", Function.toString)
  }, function (t, e) {
    t.exports = function (t, e, n, r) {
      if (!(t instanceof e) || void 0 !== r && r in t) throw TypeError(n + ": incorrect invocation!");
      return t
    }
  }, function (t, e, n) {
    var r = n(17), o = n(60), i = n(61), s = n(3), a = n(18), c = n(62), u = {}, f = {};
    (e = t.exports = function (t, e, n, l, h) {
      var p, d, y, g, v = h ? function () {
        return t
      } : c(t), m = r(n, l, e ? 2 : 1), w = 0;
      if ("function" != typeof v) throw TypeError(t + " is not iterable!");
      if (i(v)) {
        for (p = a(t.length); p > w; w++) if ((g = e ? m(s(d = t[w])[0], d[1]) : m(t[w])) === u || g === f) return g
      } else for (y = v.call(t); !(d = y.next()).done;) if ((g = o(y, m, d.value, e)) === u || g === f) return g
    }).BREAK = u, e.RETURN = f
  }, function (t, e, n) {
    var r = n(1), o = n(64).set, i = r.MutationObserver || r.WebKitMutationObserver, s = r.process,
      a = r.Promise, c = "process" == n(11)(s);
    t.exports = function () {
      var t, e, n, u = function () {
        var r, o;
        for (c && (r = s.domain) && r.exit(); t;) {
          o = t.fn, t = t.next;
          try {
            o()
          } catch (r) {
            throw t ? n() : e = void 0, r
          }
        }
        e = void 0, r && r.enter()
      };
      if (c) n = function () {
        s.nextTick(u)
      }; else if (!i || r.navigator && r.navigator.standalone) if (a && a.resolve) {
        var f = a.resolve(void 0);
        n = function () {
          f.then(u)
        }
      } else n = function () {
        o.call(r, u)
      }; else {
        var l = !0, h = document.createTextNode("");
        new i(u).observe(h, {characterData: !0}), n = function () {
          h.data = l = !l
        }
      }
      return function (r) {
        var o = {fn: r, next: void 0};
        e && (e.next = o), t || (t = o, n()), e = o
      }
    }
  }, function (t, e) {
    t.exports = function (t) {
      try {
        return {e: !1, v: t()}
      } catch (t) {
        return {e: !0, v: t}
      }
    }
  }, function (t, e, n) {
    var r = n(1).navigator;
    t.exports = r && r.userAgent || ""
  }, function (t, e, n) {
    var r = n(3), o = n(5), i = n(66);
    t.exports = function (t, e) {
      if (r(t), o(e) && e.constructor === t) return e;
      var n = i.f(t);
      return (0, n.resolve)(e), n.promise
    }
  }, function (t, e, n) {
    var r = n(10);
    t.exports = function (t, e, n) {
      for (var o in e) r(t, o, e[o], n);
      return t
    }
  }, function (t, e, n) {
    "use strict";
    var r = n(1), o = n(8), i = n(7), s = n(0)("species");
    t.exports = function (t) {
      var e = r[t];
      i && e && !e[s] && o.f(e, s, {
        configurable: !0, get: function () {
          return this
        }
      })
    }
  }, function (t, e, n) {
    var r = n(71), o = n(19);
    t.exports = function (t, e, n) {
      if (r(e)) throw TypeError("String#" + n + " doesn't accept regex!");
      return String(o(t))
    }
  }, function (t, e, n) {
    var r = n(0)("match");
    t.exports = function (t) {
      var e = /./;
      try {
        "/./"[t](e)
      } catch (n) {
        try {
          return e[r] = !1, !"/./"[t](e)
        } catch (t) {
        }
      }
      return !0
    }
  }, function (t, e, n) {
    var r = n(126);
    t.exports = function (t, e) {
      return new (r(t))(e)
    }
  }, function (t, e, n) {
    var r = n(5), o = n(77), i = n(0)("species");
    t.exports = function (t) {
      var e;
      return o(t) && ("function" != typeof (e = t.constructor) || e !== Array && !o(e.prototype) || (e = void 0), r(e) && null === (e = e[i]) && (e = void 0)), void 0 === e ? Array : e
    }
  }, function (t, e, n) {
    "use strict";
    var r = n(36), o = n(26), i = n(35), s = {};
    n(12)(s, n(0)("iterator"), (function () {
      return this
    })), t.exports = function (t, e, n) {
      t.prototype = r(s, {next: o(1, n)}), i(t, e + " Iterator")
    }
  }, function (t, e, n) {
    var r = n(8), o = n(3), i = n(23);
    t.exports = n(7) ? Object.defineProperties : function (t, e) {
      o(t);
      for (var n, s = i(e), a = s.length, c = 0; a > c;) r.f(t, n = s[c++], e[n]);
      return t
    }
  }, function (t, e) {
    t.exports = function (t, e) {
      return {value: e, done: !!t}
    }
  }, function (t, e, n) {
    var r = n(2), o = n(36), i = n(22), s = n(3), a = n(5), c = n(4), u = n(131),
      f = (n(1).Reflect || {}).construct, l = c((function () {
        function t() {
        }

        return !(f((function () {
        }), [], t) instanceof t)
      })), h = !c((function () {
        f((function () {
        }))
      }));
    r(r.S + r.F * (l || h), "Reflect", {
      construct: function (t, e) {
        i(t), s(e);
        var n = arguments.length < 3 ? t : i(arguments[2]);
        if (h && !l) return f(t, e, n);
        if (t == n) {
          switch (e.length) {
            case 0:
              return new t;
            case 1:
              return new t(e[0]);
            case 2:
              return new t(e[0], e[1]);
            case 3:
              return new t(e[0], e[1], e[2]);
            case 4:
              return new t(e[0], e[1], e[2], e[3])
          }
          var r = [null];
          return r.push.apply(r, e), new (u.apply(t, r))
        }
        var c = n.prototype, p = o(a(c) ? c : Object.prototype), d = Function.apply.call(t, p, e);
        return a(d) ? d : p
      }
    })
  }, function (t, e, n) {
    "use strict";
    var r = n(22), o = n(5), i = n(65), s = [].slice, a = {};
    t.exports = Function.bind || function (t) {
      var e = r(this), n = s.call(arguments, 1), c = function () {
        var r = n.concat(s.call(arguments));
        return this instanceof c ? function (t, e, n) {
          if (!(e in a)) {
            for (var r = [], o = 0; o < e; o++) r[o] = "a[" + o + "]";
            a[e] = Function("F,a", "return new F(" + r.join(",") + ")")
          }
          return a[e](t, n)
        }(e, r.length, r) : i(e, r, t)
      };
      return o(e.prototype) && (c.prototype = e.prototype), c
    }
  }, function (t, e, n) {
    var r = n(25)("meta"), o = n(5), i = n(13), s = n(8).f, a = 0,
      c = Object.isExtensible || function () {
        return !0
      }, u = !n(4)((function () {
        return c(Object.preventExtensions({}))
      })), f = function (t) {
        s(t, r, {value: {i: "O" + ++a, w: {}}})
      }, l = t.exports = {
        KEY: r, NEED: !1, fastKey: function (t, e) {
          if (!o(t)) return "symbol" == typeof t ? t : ("string" == typeof t ? "S" : "P") + t;
          if (!i(t, r)) {
            if (!c(t)) return "F";
            if (!e) return "E";
            f(t)
          }
          return t[r].i
        }, getWeak: function (t, e) {
          if (!i(t, r)) {
            if (!c(t)) return !0;
            if (!e) return !1;
            f(t)
          }
          return t[r].w
        }, onFreeze: function (t) {
          return u && l.NEED && c(t) && !i(t, r) && f(t), t
        }
      }
  }, function (t, e, n) {
    var r = n(23), o = n(39), i = n(38);
    t.exports = function (t) {
      var e = r(t), n = o.f;
      if (n) for (var s, a = n(t), c = i.f, u = 0; a.length > u;) c.call(t, s = a[u++]) && e.push(s);
      return e
    }
  }, function (t, e, n) {
    var r = n(14), o = n(40).f, i = {}.toString,
      s = "object" == typeof window && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
    t.exports.f = function (t) {
      return s && "[object Window]" == i.call(t) ? function (t) {
        try {
          return o(t)
        } catch (t) {
          return s.slice()
        }
      }(t) : o(r(t))
    }
  }, function (t, e, n) {
    var r = n(5), o = n(84).set;
    t.exports = function (t, e, n) {
      var i, s = e.constructor;
      return s !== n && "function" == typeof s && (i = s.prototype) !== n.prototype && r(i) && o && o(t, i), t
    }
  }, function (t, e, n) {
    var r = n(2), o = n(19), i = n(4), s = n(137), a = "[" + s + "]", c = RegExp("^" + a + a + "*"),
      u = RegExp(a + a + "*$"), f = function (t, e, n) {
        var o = {}, a = i((function () {
          return !!s[t]() || "​" != "​"[t]()
        })), c = o[t] = a ? e(l) : s[t];
        n && (o[n] = c), r(r.P + r.F * a, "String", o)
      }, l = f.trim = function (t, e) {
        return t = String(o(t)), 1 & e && (t = t.replace(c, "")), 2 & e && (t = t.replace(u, "")), t
      };
    t.exports = f
  }, function (t, e) {
    t.exports = "\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"
  }, function (t, e, n) {
    "use strict";
    var r = n(17), o = n(2), i = n(15), s = n(60), a = n(61), c = n(18), u = n(90), f = n(62);
    o(o.S + o.F * !n(67)((function (t) {
      Array.from(t)
    })), "Array", {
      from: function (t) {
        var e, n, o, l, h = i(t), p = "function" == typeof this ? this : Array,
          d = arguments.length, y = d > 1 ? arguments[1] : void 0, g = void 0 !== y, v = 0,
          m = f(h);
        if (g && (y = r(y, d > 2 ? arguments[2] : void 0, 2)), null == m || p == Array && a(m)) for (n = new p(e = c(h.length)); e > v; v++) u(n, v, g ? y(h[v], v) : h[v]); else for (l = m.call(h), n = new p; !(o = l.next()).done; v++) u(n, v, g ? s(l, y, [o.value, v], !0) : o.value);
        return n.length = v, n
      }
    })
  }, function (t, e, n) {
    "use strict";
    var r = n(2), o = n(76)(2);
    r(r.P + r.F * !n(78)([].filter, !0), "Array", {
      filter: function (t) {
        return o(this, t, arguments[1])
      }
    })
  }, function (t, e, n) {
    var r = n(14), o = n(28).f;
    n(50)("getOwnPropertyDescriptor", (function () {
      return function (t, e) {
        return o(r(t), e)
      }
    }))
  }, function (t, e, n) {
    var r = n(2), o = n(142), i = n(14), s = n(28), a = n(90);
    r(r.S, "Object", {
      getOwnPropertyDescriptors: function (t) {
        for (var e, n, r = i(t), c = s.f, u = o(r), f = {}, l = 0; u.length > l;) void 0 !== (n = c(r, e = u[l++])) && a(f, e, n);
        return f
      }
    })
  }, function (t, e, n) {
    var r = n(40), o = n(39), i = n(3), s = n(1).Reflect;
    t.exports = s && s.ownKeys || function (t) {
      var e = r.f(i(t)), n = o.f;
      return n ? e.concat(n(t)) : e
    }
  }, function (t, e, n) {
    "use strict";
    var r = n(6), o = n(92), i = n(144), s = n(98);

    function a(t) {
      var e = new i(t), n = o(i.prototype.request, e);
      return r.extend(n, i.prototype, e), r.extend(n, e), n
    }

    var c = a(n(95));
    c.Axios = i, c.create = function (t) {
      return a(s(c.defaults, t))
    }, c.Cancel = n(99), c.CancelToken = n(158), c.isCancel = n(94), c.all = function (t) {
      return Promise.all(t)
    }, c.spread = n(159), t.exports = c, t.exports.default = c
  }, function (t, e, n) {
    "use strict";
    var r = n(6), o = n(93), i = n(145), s = n(146), a = n(98);

    function c(t) {
      this.defaults = t, this.interceptors = {request: new i, response: new i}
    }

    c.prototype.request = function (t) {
      "string" == typeof t ? (t = arguments[1] || {}).url = arguments[0] : t = t || {}, (t = a(this.defaults, t)).method ? t.method = t.method.toLowerCase() : this.defaults.method ? t.method = this.defaults.method.toLowerCase() : t.method = "get";
      var e = [s, void 0], n = Promise.resolve(t);
      for (this.interceptors.request.forEach((function (t) {
        e.unshift(t.fulfilled, t.rejected)
      })), this.interceptors.response.forEach((function (t) {
        e.push(t.fulfilled, t.rejected)
      })); e.length;) n = n.then(e.shift(), e.shift());
      return n
    }, c.prototype.getUri = function (t) {
      return t = a(this.defaults, t), o(t.url, t.params, t.paramsSerializer).replace(/^\?/, "")
    }, r.forEach(["delete", "get", "head", "options"], (function (t) {
      c.prototype[t] = function (e, n) {
        return this.request(r.merge(n || {}, {method: t, url: e}))
      }
    })), r.forEach(["post", "put", "patch"], (function (t) {
      c.prototype[t] = function (e, n, o) {
        return this.request(r.merge(o || {}, {method: t, url: e, data: n}))
      }
    })), t.exports = c
  }, function (t, e, n) {
    "use strict";
    var r = n(6);

    function o() {
      this.handlers = []
    }

    o.prototype.use = function (t, e) {
      return this.handlers.push({fulfilled: t, rejected: e}), this.handlers.length - 1
    }, o.prototype.eject = function (t) {
      this.handlers[t] && (this.handlers[t] = null)
    }, o.prototype.forEach = function (t) {
      r.forEach(this.handlers, (function (e) {
        null !== e && t(e)
      }))
    }, t.exports = o
  }, function (t, e, n) {
    "use strict";
    var r = n(6), o = n(147), i = n(94), s = n(95);

    function a(t) {
      t.cancelToken && t.cancelToken.throwIfRequested()
    }

    t.exports = function (t) {
      return a(t), t.headers = t.headers || {}, t.data = o(t.data, t.headers, t.transformRequest), t.headers = r.merge(t.headers.common || {}, t.headers[t.method] || {}, t.headers), r.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (function (e) {
        delete t.headers[e]
      })), (t.adapter || s.adapter)(t).then((function (e) {
        return a(t), e.data = o(e.data, e.headers, t.transformResponse), e
      }), (function (e) {
        return i(e) || (a(t), e && e.response && (e.response.data = o(e.response.data, e.response.headers, t.transformResponse))), Promise.reject(e)
      }))
    }
  }, function (t, e, n) {
    "use strict";
    var r = n(6);
    t.exports = function (t, e, n) {
      return r.forEach(n, (function (n) {
        t = n(t, e)
      })), t
    }
  }, function (t, e) {
    var n, r, o = t.exports = {};

    function i() {
      throw new Error("setTimeout has not been defined")
    }

    function s() {
      throw new Error("clearTimeout has not been defined")
    }

    function a(t) {
      if (n === setTimeout) return setTimeout(t, 0);
      if ((n === i || !n) && setTimeout) return n = setTimeout, setTimeout(t, 0);
      try {
        return n(t, 0)
      } catch (e) {
        try {
          return n.call(null, t, 0)
        } catch (e) {
          return n.call(this, t, 0)
        }
      }
    }

    !function () {
      try {
        n = "function" == typeof setTimeout ? setTimeout : i
      } catch (t) {
        n = i
      }
      try {
        r = "function" == typeof clearTimeout ? clearTimeout : s
      } catch (t) {
        r = s
      }
    }();
    var c, u = [], f = !1, l = -1;

    function h() {
      f && c && (f = !1, c.length ? u = c.concat(u) : l = -1, u.length && p())
    }

    function p() {
      if (!f) {
        var t = a(h);
        f = !0;
        for (var e = u.length; e;) {
          for (c = u, u = []; ++l < e;) c && c[l].run();
          l = -1, e = u.length
        }
        c = null, f = !1, function (t) {
          if (r === clearTimeout) return clearTimeout(t);
          if ((r === s || !r) && clearTimeout) return r = clearTimeout, clearTimeout(t);
          try {
            return r(t)
          } catch (e) {
            try {
              return r.call(null, t)
            } catch (e) {
              return r.call(this, t)
            }
          }
        }(t)
      }
    }

    function d(t, e) {
      this.fun = t, this.array = e
    }

    function y() {
    }

    o.nextTick = function (t) {
      var e = new Array(arguments.length - 1);
      if (arguments.length > 1) for (var n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
      u.push(new d(t, e)), 1 !== u.length || f || a(p)
    }, d.prototype.run = function () {
      this.fun.apply(null, this.array)
    }, o.title = "browser", o.browser = !0, o.env = {}, o.argv = [], o.version = "", o.versions = {}, o.on = y, o.addListener = y, o.once = y, o.off = y, o.removeListener = y, o.removeAllListeners = y, o.emit = y, o.prependListener = y, o.prependOnceListener = y, o.listeners = function (t) {
      return []
    }, o.binding = function (t) {
      throw new Error("process.binding is not supported")
    }, o.cwd = function () {
      return "/"
    }, o.chdir = function (t) {
      throw new Error("process.chdir is not supported")
    }, o.umask = function () {
      return 0
    }
  }, function (t, e, n) {
    "use strict";
    var r = n(6);
    t.exports = function (t, e) {
      r.forEach(t, (function (n, r) {
        r !== e && r.toUpperCase() === e.toUpperCase() && (t[e] = n, delete t[r])
      }))
    }
  }, function (t, e, n) {
    "use strict";
    var r = n(97);
    t.exports = function (t, e, n) {
      var o = n.config.validateStatus;
      !o || o(n.status) ? t(n) : e(r("Request failed with status code " + n.status, n.config, null, n.request, n))
    }
  }, function (t, e, n) {
    "use strict";
    t.exports = function (t, e, n, r, o) {
      return t.config = e, n && (t.code = n), t.request = r, t.response = o, t.isAxiosError = !0, t.toJSON = function () {
        return {
          message: this.message,
          name: this.name,
          description: this.description,
          number: this.number,
          fileName: this.fileName,
          lineNumber: this.lineNumber,
          columnNumber: this.columnNumber,
          stack: this.stack,
          config: this.config,
          code: this.code
        }
      }, t
    }
  }, function (t, e, n) {
    "use strict";
    var r = n(153), o = n(154);
    t.exports = function (t, e) {
      return t && !r(e) ? o(t, e) : e
    }
  }, function (t, e, n) {
    "use strict";
    t.exports = function (t) {
      return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)
    }
  }, function (t, e, n) {
    "use strict";
    t.exports = function (t, e) {
      return e ? t.replace(/\/+$/, "") + "/" + e.replace(/^\/+/, "") : t
    }
  }, function (t, e, n) {
    "use strict";
    var r = n(6),
      o = ["age", "authorization", "content-length", "content-type", "etag", "expires", "from", "host", "if-modified-since", "if-unmodified-since", "last-modified", "location", "max-forwards", "proxy-authorization", "referer", "retry-after", "user-agent"];
    t.exports = function (t) {
      var e, n, i, s = {};
      return t ? (r.forEach(t.split("\n"), (function (t) {
        if (i = t.indexOf(":"), e = r.trim(t.substr(0, i)).toLowerCase(), n = r.trim(t.substr(i + 1)), e) {
          if (s[e] && o.indexOf(e) >= 0) return;
          s[e] = "set-cookie" === e ? (s[e] ? s[e] : []).concat([n]) : s[e] ? s[e] + ", " + n : n
        }
      })), s) : s
    }
  }, function (t, e, n) {
    "use strict";
    var r = n(6);
    t.exports = r.isStandardBrowserEnv() ? function () {
      var t, e = /(msie|trident)/i.test(navigator.userAgent), n = document.createElement("a");

      function o(t) {
        var r = t;
        return e && (n.setAttribute("href", r), r = n.href), n.setAttribute("href", r), {
          href: n.href,
          protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
          host: n.host,
          search: n.search ? n.search.replace(/^\?/, "") : "",
          hash: n.hash ? n.hash.replace(/^#/, "") : "",
          hostname: n.hostname,
          port: n.port,
          pathname: "/" === n.pathname.charAt(0) ? n.pathname : "/" + n.pathname
        }
      }

      return t = o(window.location.href), function (e) {
        var n = r.isString(e) ? o(e) : e;
        return n.protocol === t.protocol && n.host === t.host
      }
    }() : function () {
      return !0
    }
  }, function (t, e, n) {
    "use strict";
    var r = n(6);
    t.exports = r.isStandardBrowserEnv() ? {
      write: function (t, e, n, o, i, s) {
        var a = [];
        a.push(t + "=" + encodeURIComponent(e)), r.isNumber(n) && a.push("expires=" + new Date(n).toGMTString()), r.isString(o) && a.push("path=" + o), r.isString(i) && a.push("domain=" + i), !0 === s && a.push("secure"), document.cookie = a.join("; ")
      }, read: function (t) {
        var e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
        return e ? decodeURIComponent(e[3]) : null
      }, remove: function (t) {
        this.write(t, "", Date.now() - 864e5)
      }
    } : {
      write: function () {
      }, read: function () {
        return null
      }, remove: function () {
      }
    }
  }, function (t, e, n) {
    "use strict";
    var r = n(99);

    function o(t) {
      if ("function" != typeof t) throw new TypeError("executor must be a function.");
      var e;
      this.promise = new Promise((function (t) {
        e = t
      }));
      var n = this;
      t((function (t) {
        n.reason || (n.reason = new r(t), e(n.reason))
      }))
    }

    o.prototype.throwIfRequested = function () {
      if (this.reason) throw this.reason
    }, o.source = function () {
      var t;
      return {
        token: new o((function (e) {
          t = e
        })), cancel: t
      }
    }, t.exports = o
  }, function (t, e, n) {
    "use strict";
    t.exports = function (t) {
      return function (e) {
        return t.apply(null, e)
      }
    }
  }, function (t, e, n) {
    (function (t) {
      !function (t) {
        "use strict";
        var e, n = function () {
            try {
              if (t.URLSearchParams && "bar" === new t.URLSearchParams("foo=bar").get("foo")) return t.URLSearchParams
            } catch (t) {
            }
            return null
          }(), r = n && "a=1" === new n({a: 1}).toString(), o = n && "+" === new n("s=%2B").get("s"),
          i = n && "size" in n.prototype, s = "__URLSearchParams__",
          a = !n || ((e = new n).append("s", " &"), "s=+%26" === e.toString()), c = p.prototype,
          u = !(!t.Symbol || !t.Symbol.iterator);
        if (!(n && r && o && a && i)) {
          c.append = function (t, e) {
            m(this[s], t, e)
          }, c.delete = function (t) {
            delete this[s][t]
          }, c.get = function (t) {
            var e = this[s];
            return this.has(t) ? e[t][0] : null
          }, c.getAll = function (t) {
            var e = this[s];
            return this.has(t) ? e[t].slice(0) : []
          }, c.has = function (t) {
            return b(this[s], t)
          }, c.set = function (t, e) {
            this[s][t] = ["" + e]
          }, c.toString = function () {
            var t, e, n, r, o = this[s], i = [];
            for (e in o) for (n = d(e), t = 0, r = o[e]; t < r.length; t++) i.push(n + "=" + d(r[t]));
            return i.join("&")
          };
          var f, l = t.Proxy && n && (!o || !a || !r || !i);
          l ? (f = new Proxy(n, {
            construct: function (t, e) {
              return new t(new p(e[0]).toString())
            }
          })).toString = Function.prototype.toString.bind(p) : f = p, Object.defineProperty(t, "URLSearchParams", {value: f});
          var h = t.URLSearchParams.prototype;
          h.polyfill = !0, !l && t.Symbol && (h[t.Symbol.toStringTag] = "URLSearchParams"), h.forEach = h.forEach || function (t, e) {
            var n = v(this.toString());
            Object.getOwnPropertyNames(n).forEach((function (r) {
              n[r].forEach((function (n) {
                t.call(e, n, r, this)
              }), this)
            }), this)
          }, h.sort = h.sort || function () {
            var t, e, n, r = v(this.toString()), o = [];
            for (t in r) o.push(t);
            for (o.sort(), e = 0; e < o.length; e++) this.delete(o[e]);
            for (e = 0; e < o.length; e++) {
              var i = o[e], s = r[i];
              for (n = 0; n < s.length; n++) this.append(i, s[n])
            }
          }, h.keys = h.keys || function () {
            var t = [];
            return this.forEach((function (e, n) {
              t.push(n)
            })), g(t)
          }, h.values = h.values || function () {
            var t = [];
            return this.forEach((function (e) {
              t.push(e)
            })), g(t)
          }, h.entries = h.entries || function () {
            var t = [];
            return this.forEach((function (e, n) {
              t.push([n, e])
            })), g(t)
          }, u && (h[t.Symbol.iterator] = h[t.Symbol.iterator] || h.entries), h.size || Object.defineProperty(h, "size", {
            get: function () {
              var t = v(this.toString());
              if (h === this) throw new TypeError("Illegal invocation at URLSearchParams.invokeGetter");
              return Object.keys(t).reduce((function (e, n) {
                return e + t[n].length
              }), 0)
            }
          })
        }

        function p(t) {
          ((t = t || "") instanceof URLSearchParams || t instanceof p) && (t = t.toString()), this[s] = v(t)
        }

        function d(t) {
          var e = {
            "!": "%21",
            "'": "%27",
            "(": "%28",
            ")": "%29",
            "~": "%7E",
            "%20": "+",
            "%00": "\0"
          };
          return encodeURIComponent(t).replace(/[!'\(\)~]|%20|%00/g, (function (t) {
            return e[t]
          }))
        }

        function y(t) {
          return t.replace(/[ +]/g, "%20").replace(/(%[a-f0-9]{2})+/gi, (function (t) {
            return decodeURIComponent(t)
          }))
        }

        function g(e) {
          var n = {
            next: function () {
              var t = e.shift();
              return {done: void 0 === t, value: t}
            }
          };
          return u && (n[t.Symbol.iterator] = function () {
            return n
          }), n
        }

        function v(t) {
          var e = {};
          if ("object" == typeof t) if (w(t)) for (var n = 0; n < t.length; n++) {
            var r = t[n];
            if (!w(r) || 2 !== r.length) throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements");
            m(e, r[0], r[1])
          } else for (var o in t) t.hasOwnProperty(o) && m(e, o, t[o]); else {
            0 === t.indexOf("?") && (t = t.slice(1));
            for (var i = t.split("&"), s = 0; s < i.length; s++) {
              var a = i[s], c = a.indexOf("=");
              -1 < c ? m(e, y(a.slice(0, c)), y(a.slice(c + 1))) : a && m(e, y(a), "")
            }
          }
          return e
        }

        function m(t, e, n) {
          var r = "string" == typeof n ? n : null != n && "function" == typeof n.toString ? n.toString() : JSON.stringify(n);
          b(t, e) ? t[e].push(r) : t[e] = [r]
        }

        function w(t) {
          return !!t && "[object Array]" === Object.prototype.toString.call(t)
        }

        function b(t, e) {
          return Object.prototype.hasOwnProperty.call(t, e)
        }
      }(void 0 !== t ? t : "undefined" != typeof window ? window : this)
    }).call(this, n(100))
  }, function (t, e, n) {
    "use strict";
    var r = n(3), o = n(15), i = n(18), s = n(34), a = n(101), c = n(102), u = Math.max,
      f = Math.min, l = Math.floor, h = /\$([$&`']|\d\d?|<[^>]*>)/g, p = /\$([$&`']|\d\d?)/g;
    n(103)("replace", 2, (function (t, e, n, d) {
      return [function (r, o) {
        var i = t(this), s = null == r ? void 0 : r[e];
        return void 0 !== s ? s.call(r, i, o) : n.call(String(i), r, o)
      }, function (t, e) {
        var o = d(n, t, this, e);
        if (o.done) return o.value;
        var l = r(t), h = String(this), p = "function" == typeof e;
        p || (e = String(e));
        var g = l.global;
        if (g) {
          var v = l.unicode;
          l.lastIndex = 0
        }
        for (var m = []; ;) {
          var w = c(l, h);
          if (null === w) break;
          if (m.push(w), !g) break;
          "" === String(w[0]) && (l.lastIndex = a(h, i(l.lastIndex), v))
        }
        for (var b, x = "", S = 0, E = 0; E < m.length; E++) {
          w = m[E];
          for (var _ = String(w[0]), O = u(f(s(w.index), h.length), 0), T = [], P = 1; P < w.length; P++) T.push(void 0 === (b = w[P]) ? b : String(b));
          var A = w.groups;
          if (p) {
            var k = [_].concat(T, O, h);
            void 0 !== A && k.push(A);
            var L = String(e.apply(void 0, k))
          } else L = y(_, h, O, T, A, e);
          O >= S && (x += h.slice(S, O) + L, S = O + _.length)
        }
        return x + h.slice(S)
      }];

      function y(t, e, r, i, s, a) {
        var c = r + t.length, u = i.length, f = p;
        return void 0 !== s && (s = o(s), f = h), n.call(a, f, (function (n, o) {
          var a;
          switch (o.charAt(0)) {
            case"$":
              return "$";
            case"&":
              return t;
            case"`":
              return e.slice(0, r);
            case"'":
              return e.slice(c);
            case"<":
              a = s[o.slice(1, -1)];
              break;
            default:
              var f = +o;
              if (0 === f) return n;
              if (f > u) {
                var h = l(f / 10);
                return 0 === h ? n : h <= u ? void 0 === i[h - 1] ? o.charAt(1) : i[h - 1] + o.charAt(1) : n
              }
              a = i[f - 1]
          }
          return void 0 === a ? "" : a
        }))
      }
    }))
  }, function (t, e, n) {
    "use strict";
    var r = n(53);
    n(2)({target: "RegExp", proto: !0, forced: r !== /./.exec}, {exec: r})
  }, function (t, e, n) {
    "use strict";
    n(164)("bold", (function (t) {
      return function () {
        return t(this, "b", "", "")
      }
    }))
  }, function (t, e, n) {
    var r = n(2), o = n(4), i = n(19), s = /"/g, a = function (t, e, n, r) {
      var o = String(i(t)), a = "<" + e;
      return "" !== n && (a += " " + n + '="' + String(r).replace(s, "&quot;") + '"'), a + ">" + o + "</" + e + ">"
    };
    t.exports = function (t, e) {
      var n = {};
      n[t] = e(a), r(r.P + r.F * o((function () {
        var e = ""[t]('"');
        return e !== e.toLowerCase() || e.split('"').length > 3
      })), "String", n)
    }
  }, function (t, e, n) {
    "use strict";
    var r = n(71), o = n(3), i = n(63), s = n(101), a = n(18), c = n(102), u = n(53), f = n(4),
      l = Math.min, h = [].push, p = "split", d = "length", y = "lastIndex", g = 4294967295,
      v = !f((function () {
        RegExp(g, "y")
      }));
    n(103)("split", 2, (function (t, e, n, f) {
      var m;
      return m = "c" == "abbc"[p](/(b)*/)[1] || 4 != "test"[p](/(?:)/, -1)[d] || 2 != "ab"[p](/(?:ab)*/)[d] || 4 != "."[p](/(.?)(.?)/)[d] || "."[p](/()()/)[d] > 1 || ""[p](/.?/)[d] ? function (t, e) {
        var o = String(this);
        if (void 0 === t && 0 === e) return [];
        if (!r(t)) return n.call(o, t, e);
        for (var i, s, a, c = [], f = (t.ignoreCase ? "i" : "") + (t.multiline ? "m" : "") + (t.unicode ? "u" : "") + (t.sticky ? "y" : ""), l = 0, p = void 0 === e ? g : e >>> 0, v = new RegExp(t.source, f + "g"); (i = u.call(v, o)) && !((s = v[y]) > l && (c.push(o.slice(l, i.index)), i[d] > 1 && i.index < o[d] && h.apply(c, i.slice(1)), a = i[0][d], l = s, c[d] >= p));) v[y] === i.index && v[y]++;
        return l === o[d] ? !a && v.test("") || c.push("") : c.push(o.slice(l)), c[d] > p ? c.slice(0, p) : c
      } : "0"[p](void 0, 0)[d] ? function (t, e) {
        return void 0 === t && 0 === e ? [] : n.call(this, t, e)
      } : n, [function (n, r) {
        var o = t(this), i = null == n ? void 0 : n[e];
        return void 0 !== i ? i.call(n, o, r) : m.call(String(o), n, r)
      }, function (t, e) {
        var r = f(m, t, this, e, m !== n);
        if (r.done) return r.value;
        var u = o(t), h = String(this), p = i(u, RegExp), d = u.unicode,
          y = (u.ignoreCase ? "i" : "") + (u.multiline ? "m" : "") + (u.unicode ? "u" : "") + (v ? "y" : "g"),
          w = new p(v ? u : "^(?:" + u.source + ")", y), b = void 0 === e ? g : e >>> 0;
        if (0 === b) return [];
        if (0 === h.length) return null === c(w, h) ? [h] : [];
        for (var x = 0, S = 0, E = []; S < h.length;) {
          w.lastIndex = v ? S : 0;
          var _, O = c(w, v ? h : h.slice(S));
          if (null === O || (_ = l(a(w.lastIndex + (v ? 0 : S)), h.length)) === x) S = s(h, S, d); else {
            if (E.push(h.slice(x, S)), E.length === b) return E;
            for (var T = 1; T <= O.length - 1; T++) if (E.push(O[T]), E.length === b) return E;
            S = x = _
          }
        }
        return E.push(h.slice(x)), E
      }]
    }))
  }, function (t, e, n) {
    var r = n(2);
    r(r.S + r.F, "Object", {assign: n(167)})
  }, function (t, e, n) {
    "use strict";
    var r = n(7), o = n(23), i = n(39), s = n(38), a = n(15), c = n(45), u = Object.assign;
    t.exports = !u || n(4)((function () {
      var t = {}, e = {}, n = Symbol(), r = "abcdefghijklmnopqrst";
      return t[n] = 7, r.split("").forEach((function (t) {
        e[t] = t
      })), 7 != u({}, t)[n] || Object.keys(u({}, e)).join("") != r
    })) ? function (t, e) {
      for (var n = a(t), u = arguments.length, f = 1, l = i.f, h = s.f; u > f;) for (var p, d = c(arguments[f++]), y = l ? o(d).concat(l(d)) : o(d), g = y.length, v = 0; g > v;) p = y[v++], r && !h.call(d, p) || (n[p] = d[p]);
      return n
    } : u
  }, function (t, e) {
    t.exports = function () {
      return "function" == typeof Promise && Promise.prototype && Promise.prototype.then
    }
  }, function (t, e, n) {
    const r = n(20), o = n(55), i = n(170), s = n(171), a = n(172), c = n(173), u = n(174),
      f = n(104), l = n(175), h = n(178), p = n(179), d = n(21), y = n(180);

    function g(t, e, n) {
      const r = t.size, o = p.getEncodedBits(e, n);
      let i, s;
      for (i = 0; i < 15; i++) s = 1 == (o >> i & 1), i < 6 ? t.set(i, 8, s, !0) : i < 8 ? t.set(i + 1, 8, s, !0) : t.set(r - 15 + i, 8, s, !0), i < 8 ? t.set(8, r - i - 1, s, !0) : i < 9 ? t.set(8, 15 - i - 1 + 1, s, !0) : t.set(8, 15 - i - 1, s, !0);
      t.set(r - 8, 8, 1, !0)
    }

    function v(t, e, n) {
      const o = new i;
      n.forEach((function (e) {
        o.put(e.mode.bit, 4), o.put(e.getLength(), d.getCharCountIndicator(e.mode, t)), e.write(o)
      }));
      const s = 8 * (r.getSymbolTotalCodewords(t) - f.getTotalCodewordsCount(t, e));
      for (o.getLengthInBits() + 4 <= s && o.put(0, 4); o.getLengthInBits() % 8 != 0;) o.putBit(0);
      const a = (s - o.getLengthInBits()) / 8;
      for (let t = 0; t < a; t++) o.put(t % 2 ? 17 : 236, 8);
      return function (t, e, n) {
        const o = r.getSymbolTotalCodewords(e), i = f.getTotalCodewordsCount(e, n), s = o - i,
          a = f.getBlocksCount(e, n), c = o % a, u = a - c, h = Math.floor(o / a),
          p = Math.floor(s / a), d = p + 1, y = h - p, g = new l(y);
        let v = 0;
        const m = new Array(a), w = new Array(a);
        let b = 0;
        const x = new Uint8Array(t.buffer);
        for (let t = 0; t < a; t++) {
          const e = t < u ? p : d;
          m[t] = x.slice(v, v + e), w[t] = g.encode(m[t]), v += e, b = Math.max(b, e)
        }
        const S = new Uint8Array(o);
        let E, _, O = 0;
        for (E = 0; E < b; E++) for (_ = 0; _ < a; _++) E < m[_].length && (S[O++] = m[_][E]);
        for (E = 0; E < y; E++) for (_ = 0; _ < a; _++) S[O++] = w[_][E];
        return S
      }(o, t, e)
    }

    function m(t, e, n, o) {
      let i;
      if (Array.isArray(t)) i = y.fromArray(t); else {
        if ("string" != typeof t) throw new Error("Invalid data");
        {
          let r = e;
          if (!r) {
            const e = y.rawSplit(t);
            r = h.getBestVersionForData(e, n)
          }
          i = y.fromString(t, r || 40)
        }
      }
      const f = h.getBestVersionForData(i, n);
      if (!f) throw new Error("The amount of data is too big to be stored in a QR Code");
      if (e) {
        if (e < f) throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: " + f + ".\n")
      } else e = f;
      const l = v(e, n, i), p = r.getSymbolSize(e), d = new s(p);
      return function (t, e) {
        const n = t.size, r = c.getPositions(e);
        for (let e = 0; e < r.length; e++) {
          const o = r[e][0], i = r[e][1];
          for (let e = -1; e <= 7; e++) if (!(o + e <= -1 || n <= o + e)) for (let r = -1; r <= 7; r++) i + r <= -1 || n <= i + r || (e >= 0 && e <= 6 && (0 === r || 6 === r) || r >= 0 && r <= 6 && (0 === e || 6 === e) || e >= 2 && e <= 4 && r >= 2 && r <= 4 ? t.set(o + e, i + r, !0, !0) : t.set(o + e, i + r, !1, !0))
        }
      }(d, e), function (t) {
        const e = t.size;
        for (let n = 8; n < e - 8; n++) {
          const e = n % 2 == 0;
          t.set(n, 6, e, !0), t.set(6, n, e, !0)
        }
      }(d), function (t, e) {
        const n = a.getPositions(e);
        for (let e = 0; e < n.length; e++) {
          const r = n[e][0], o = n[e][1];
          for (let e = -2; e <= 2; e++) for (let n = -2; n <= 2; n++) -2 === e || 2 === e || -2 === n || 2 === n || 0 === e && 0 === n ? t.set(r + e, o + n, !0, !0) : t.set(r + e, o + n, !1, !0)
        }
      }(d, e), g(d, n, 0), e >= 7 && function (t, e) {
        const n = t.size, r = h.getEncodedBits(e);
        let o, i, s;
        for (let e = 0; e < 18; e++) o = Math.floor(e / 3), i = e % 3 + n - 8 - 3, s = 1 == (r >> e & 1), t.set(o, i, s, !0), t.set(i, o, s, !0)
      }(d, e), function (t, e) {
        const n = t.size;
        let r = -1, o = n - 1, i = 7, s = 0;
        for (let a = n - 1; a > 0; a -= 2) for (6 === a && a--; ;) {
          for (let n = 0; n < 2; n++) if (!t.isReserved(o, a - n)) {
            let r = !1;
            s < e.length && (r = 1 == (e[s] >>> i & 1)), t.set(o, a - n, r), i--, -1 === i && (s++, i = 7)
          }
          if (o += r, o < 0 || n <= o) {
            o -= r, r = -r;
            break
          }
        }
      }(d, l), isNaN(o) && (o = u.getBestMask(d, g.bind(null, d, n))), u.applyMask(o, d), g(d, n, o), {
        modules: d,
        version: e,
        errorCorrectionLevel: n,
        maskPattern: o,
        segments: i
      }
    }

    e.create = function (t, e) {
      if (void 0 === t || "" === t) throw new Error("No input text");
      let n, i, s = o.M;
      return void 0 !== e && (s = o.from(e.errorCorrectionLevel, o.M), n = h.from(e.version), i = u.from(e.maskPattern), e.toSJISFunc && r.setToSJISFunction(e.toSJISFunc)), m(t, n, s, i)
    }
  }, function (t, e) {
    function n() {
      this.buffer = [], this.length = 0
    }

    n.prototype = {
      get: function (t) {
        const e = Math.floor(t / 8);
        return 1 == (this.buffer[e] >>> 7 - t % 8 & 1)
      }, put: function (t, e) {
        for (let n = 0; n < e; n++) this.putBit(1 == (t >>> e - n - 1 & 1))
      }, getLengthInBits: function () {
        return this.length
      }, putBit: function (t) {
        const e = Math.floor(this.length / 8);
        this.buffer.length <= e && this.buffer.push(0), t && (this.buffer[e] |= 128 >>> this.length % 8), this.length++
      }
    }, t.exports = n
  }, function (t, e) {
    function n(t) {
      if (!t || t < 1) throw new Error("BitMatrix size must be defined and greater than 0");
      this.size = t, this.data = new Uint8Array(t * t), this.reservedBit = new Uint8Array(t * t)
    }

    n.prototype.set = function (t, e, n, r) {
      const o = t * this.size + e;
      this.data[o] = n, r && (this.reservedBit[o] = !0)
    }, n.prototype.get = function (t, e) {
      return this.data[t * this.size + e]
    }, n.prototype.xor = function (t, e, n) {
      this.data[t * this.size + e] ^= n
    }, n.prototype.isReserved = function (t, e) {
      return this.reservedBit[t * this.size + e]
    }, t.exports = n
  }, function (t, e, n) {
    const r = n(20).getSymbolSize;
    e.getRowColCoords = function (t) {
      if (1 === t) return [];
      const e = Math.floor(t / 7) + 2, n = r(t),
        o = 145 === n ? 26 : 2 * Math.ceil((n - 13) / (2 * e - 2)), i = [n - 7];
      for (let t = 1; t < e - 1; t++) i[t] = i[t - 1] - o;
      return i.push(6), i.reverse()
    }, e.getPositions = function (t) {
      const n = [], r = e.getRowColCoords(t), o = r.length;
      for (let t = 0; t < o; t++) for (let e = 0; e < o; e++) 0 === t && 0 === e || 0 === t && e === o - 1 || t === o - 1 && 0 === e || n.push([r[t], r[e]]);
      return n
    }
  }, function (t, e, n) {
    const r = n(20).getSymbolSize;
    e.getPositions = function (t) {
      const e = r(t);
      return [[0, 0], [e - 7, 0], [0, e - 7]]
    }
  }, function (t, e) {
    e.Patterns = {
      PATTERN000: 0,
      PATTERN001: 1,
      PATTERN010: 2,
      PATTERN011: 3,
      PATTERN100: 4,
      PATTERN101: 5,
      PATTERN110: 6,
      PATTERN111: 7
    };
    const n = 3, r = 3, o = 40, i = 10;

    function s(t, n, r) {
      switch (t) {
        case e.Patterns.PATTERN000:
          return (n + r) % 2 == 0;
        case e.Patterns.PATTERN001:
          return n % 2 == 0;
        case e.Patterns.PATTERN010:
          return r % 3 == 0;
        case e.Patterns.PATTERN011:
          return (n + r) % 3 == 0;
        case e.Patterns.PATTERN100:
          return (Math.floor(n / 2) + Math.floor(r / 3)) % 2 == 0;
        case e.Patterns.PATTERN101:
          return n * r % 2 + n * r % 3 == 0;
        case e.Patterns.PATTERN110:
          return (n * r % 2 + n * r % 3) % 2 == 0;
        case e.Patterns.PATTERN111:
          return (n * r % 3 + (n + r) % 2) % 2 == 0;
        default:
          throw new Error("bad maskPattern:" + t)
      }
    }

    e.isValid = function (t) {
      return null != t && "" !== t && !isNaN(t) && t >= 0 && t <= 7
    }, e.from = function (t) {
      return e.isValid(t) ? parseInt(t, 10) : void 0
    }, e.getPenaltyN1 = function (t) {
      const e = t.size;
      let r = 0, o = 0, i = 0, s = null, a = null;
      for (let c = 0; c < e; c++) {
        o = i = 0, s = a = null;
        for (let u = 0; u < e; u++) {
          let e = t.get(c, u);
          e === s ? o++ : (o >= 5 && (r += n + (o - 5)), s = e, o = 1), e = t.get(u, c), e === a ? i++ : (i >= 5 && (r += n + (i - 5)), a = e, i = 1)
        }
        o >= 5 && (r += n + (o - 5)), i >= 5 && (r += n + (i - 5))
      }
      return r
    }, e.getPenaltyN2 = function (t) {
      const e = t.size;
      let n = 0;
      for (let r = 0; r < e - 1; r++) for (let o = 0; o < e - 1; o++) {
        const e = t.get(r, o) + t.get(r, o + 1) + t.get(r + 1, o) + t.get(r + 1, o + 1);
        4 !== e && 0 !== e || n++
      }
      return n * r
    }, e.getPenaltyN3 = function (t) {
      const e = t.size;
      let n = 0, r = 0, i = 0;
      for (let o = 0; o < e; o++) {
        r = i = 0;
        for (let s = 0; s < e; s++) r = r << 1 & 2047 | t.get(o, s), s >= 10 && (1488 === r || 93 === r) && n++, i = i << 1 & 2047 | t.get(s, o), s >= 10 && (1488 === i || 93 === i) && n++
      }
      return n * o
    }, e.getPenaltyN4 = function (t) {
      let e = 0;
      const n = t.data.length;
      for (let r = 0; r < n; r++) e += t.data[r];
      return Math.abs(Math.ceil(100 * e / n / 5) - 10) * i
    }, e.applyMask = function (t, e) {
      const n = e.size;
      for (let r = 0; r < n; r++) for (let o = 0; o < n; o++) e.isReserved(o, r) || e.xor(o, r, s(t, o, r))
    }, e.getBestMask = function (t, n) {
      const r = Object.keys(e.Patterns).length;
      let o = 0, i = 1 / 0;
      for (let s = 0; s < r; s++) {
        n(s), e.applyMask(s, t);
        const r = e.getPenaltyN1(t) + e.getPenaltyN2(t) + e.getPenaltyN3(t) + e.getPenaltyN4(t);
        e.applyMask(s, t), r < i && (i = r, o = s)
      }
      return o
    }
  }, function (t, e, n) {
    const r = n(176);

    function o(t) {
      this.genPoly = void 0, this.degree = t, this.degree && this.initialize(this.degree)
    }

    o.prototype.initialize = function (t) {
      this.degree = t, this.genPoly = r.generateECPolynomial(this.degree)
    }, o.prototype.encode = function (t) {
      if (!this.genPoly) throw new Error("Encoder not initialized");
      const e = new Uint8Array(t.length + this.degree);
      e.set(t);
      const n = r.mod(e, this.genPoly), o = this.degree - n.length;
      if (o > 0) {
        const t = new Uint8Array(this.degree);
        return t.set(n, o), t
      }
      return n
    }, t.exports = o
  }, function (t, e, n) {
    const r = n(177);
    e.mul = function (t, e) {
      const n = new Uint8Array(t.length + e.length - 1);
      for (let o = 0; o < t.length; o++) for (let i = 0; i < e.length; i++) n[o + i] ^= r.mul(t[o], e[i]);
      return n
    }, e.mod = function (t, e) {
      let n = new Uint8Array(t);
      for (; n.length - e.length >= 0;) {
        const t = n[0];
        for (let o = 0; o < e.length; o++) n[o] ^= r.mul(e[o], t);
        let o = 0;
        for (; o < n.length && 0 === n[o];) o++;
        n = n.slice(o)
      }
      return n
    }, e.generateECPolynomial = function (t) {
      let n = new Uint8Array([1]);
      for (let o = 0; o < t; o++) n = e.mul(n, new Uint8Array([1, r.exp(o)]));
      return n
    }
  }, function (t, e) {
    const n = new Uint8Array(512), r = new Uint8Array(256);
    !function () {
      let t = 1;
      for (let e = 0; e < 255; e++) n[e] = t, r[t] = e, t <<= 1, 256 & t && (t ^= 285);
      for (let t = 255; t < 512; t++) n[t] = n[t - 255]
    }(), e.log = function (t) {
      if (t < 1) throw new Error("log(" + t + ")");
      return r[t]
    }, e.exp = function (t) {
      return n[t]
    }, e.mul = function (t, e) {
      return 0 === t || 0 === e ? 0 : n[r[t] + r[e]]
    }
  }, function (t, e, n) {
    const r = n(20), o = n(104), i = n(55), s = n(21), a = n(105), c = r.getBCHDigit(7973);

    function u(t, e) {
      return s.getCharCountIndicator(t, e) + 4
    }

    function f(t, e) {
      let n = 0;
      return t.forEach((function (t) {
        const r = u(t.mode, e);
        n += r + t.getBitsLength()
      })), n
    }

    e.from = function (t, e) {
      return a.isValid(t) ? parseInt(t, 10) : e
    }, e.getCapacity = function (t, e, n) {
      if (!a.isValid(t)) throw new Error("Invalid QR Code version");
      void 0 === n && (n = s.BYTE);
      const i = 8 * (r.getSymbolTotalCodewords(t) - o.getTotalCodewordsCount(t, e));
      if (n === s.MIXED) return i;
      const c = i - u(n, t);
      switch (n) {
        case s.NUMERIC:
          return Math.floor(c / 10 * 3);
        case s.ALPHANUMERIC:
          return Math.floor(c / 11 * 2);
        case s.KANJI:
          return Math.floor(c / 13);
        case s.BYTE:
        default:
          return Math.floor(c / 8)
      }
    }, e.getBestVersionForData = function (t, n) {
      let r;
      const o = i.from(n, i.M);
      if (Array.isArray(t)) {
        if (t.length > 1) return function (t, n) {
          for (let r = 1; r <= 40; r++) if (f(t, r) <= e.getCapacity(r, n, s.MIXED)) return r
        }(t, o);
        if (0 === t.length) return 1;
        r = t[0]
      } else r = t;
      return function (t, n, r) {
        for (let o = 1; o <= 40; o++) if (n <= e.getCapacity(o, r, t)) return o
      }(r.mode, r.getLength(), o)
    }, e.getEncodedBits = function (t) {
      if (!a.isValid(t) || t < 7) throw new Error("Invalid QR Code version");
      let e = t << 12;
      for (; r.getBCHDigit(e) - c >= 0;) e ^= 7973 << r.getBCHDigit(e) - c;
      return t << 12 | e
    }
  }, function (t, e, n) {
    const r = n(20), o = r.getBCHDigit(1335);
    e.getEncodedBits = function (t, e) {
      const n = t.bit << 3 | e;
      let i = n << 10;
      for (; r.getBCHDigit(i) - o >= 0;) i ^= 1335 << r.getBCHDigit(i) - o;
      return 21522 ^ (n << 10 | i)
    }
  }, function (t, e, n) {
    const r = n(21), o = n(181), i = n(182), s = n(183), a = n(185), c = n(106), u = n(20),
      f = n(186);

    function l(t) {
      return unescape(encodeURIComponent(t)).length
    }

    function h(t, e, n) {
      const r = [];
      let o;
      for (; null !== (o = t.exec(n));) r.push({
        data: o[0],
        index: o.index,
        mode: e,
        length: o[0].length
      });
      return r
    }

    function p(t) {
      const e = h(c.NUMERIC, r.NUMERIC, t), n = h(c.ALPHANUMERIC, r.ALPHANUMERIC, t);
      let o, i;
      u.isKanjiModeEnabled() ? (o = h(c.BYTE, r.BYTE, t), i = h(c.KANJI, r.KANJI, t)) : (o = h(c.BYTE_KANJI, r.BYTE, t), i = []);
      return e.concat(n, o, i).sort((function (t, e) {
        return t.index - e.index
      })).map((function (t) {
        return {data: t.data, mode: t.mode, length: t.length}
      }))
    }

    function d(t, e) {
      switch (e) {
        case r.NUMERIC:
          return o.getBitsLength(t);
        case r.ALPHANUMERIC:
          return i.getBitsLength(t);
        case r.KANJI:
          return a.getBitsLength(t);
        case r.BYTE:
          return s.getBitsLength(t)
      }
    }

    function y(t, e) {
      let n;
      const c = r.getBestModeForData(t);
      if (n = r.from(e, c), n !== r.BYTE && n.bit < c.bit) throw new Error('"' + t + '" cannot be encoded with mode ' + r.toString(n) + ".\n Suggested mode is: " + r.toString(c));
      switch (n !== r.KANJI || u.isKanjiModeEnabled() || (n = r.BYTE), n) {
        case r.NUMERIC:
          return new o(t);
        case r.ALPHANUMERIC:
          return new i(t);
        case r.KANJI:
          return new a(t);
        case r.BYTE:
          return new s(t)
      }
    }

    e.fromArray = function (t) {
      return t.reduce((function (t, e) {
        return "string" == typeof e ? t.push(y(e, null)) : e.data && t.push(y(e.data, e.mode)), t
      }), [])
    }, e.fromString = function (t, n) {
      const o = function (t) {
        const e = [];
        for (let n = 0; n < t.length; n++) {
          const o = t[n];
          switch (o.mode) {
            case r.NUMERIC:
              e.push([o, {data: o.data, mode: r.ALPHANUMERIC, length: o.length}, {
                data: o.data,
                mode: r.BYTE,
                length: o.length
              }]);
              break;
            case r.ALPHANUMERIC:
              e.push([o, {data: o.data, mode: r.BYTE, length: o.length}]);
              break;
            case r.KANJI:
              e.push([o, {data: o.data, mode: r.BYTE, length: l(o.data)}]);
              break;
            case r.BYTE:
              e.push([{data: o.data, mode: r.BYTE, length: l(o.data)}])
          }
        }
        return e
      }(p(t, u.isKanjiModeEnabled())), i = function (t, e) {
        const n = {}, o = {start: {}};
        let i = ["start"];
        for (let s = 0; s < t.length; s++) {
          const a = t[s], c = [];
          for (let t = 0; t < a.length; t++) {
            const u = a[t], f = "" + s + t;
            c.push(f), n[f] = {node: u, lastCount: 0}, o[f] = {};
            for (let t = 0; t < i.length; t++) {
              const s = i[t];
              n[s] && n[s].node.mode === u.mode ? (o[s][f] = d(n[s].lastCount + u.length, u.mode) - d(n[s].lastCount, u.mode), n[s].lastCount += u.length) : (n[s] && (n[s].lastCount = u.length), o[s][f] = d(u.length, u.mode) + 4 + r.getCharCountIndicator(u.mode, e))
            }
          }
          i = c
        }
        for (let t = 0; t < i.length; t++) o[i[t]].end = 0;
        return {map: o, table: n}
      }(o, n), s = f.find_path(i.map, "start", "end"), a = [];
      for (let t = 1; t < s.length - 1; t++) a.push(i.table[s[t]].node);
      return e.fromArray(function (t) {
        return t.reduce((function (t, e) {
          const n = t.length - 1 >= 0 ? t[t.length - 1] : null;
          return n && n.mode === e.mode ? (t[t.length - 1].data += e.data, t) : (t.push(e), t)
        }), [])
      }(a))
    }, e.rawSplit = function (t) {
      return e.fromArray(p(t, u.isKanjiModeEnabled()))
    }
  }, function (t, e, n) {
    const r = n(21);

    function o(t) {
      this.mode = r.NUMERIC, this.data = t.toString()
    }

    o.getBitsLength = function (t) {
      return 10 * Math.floor(t / 3) + (t % 3 ? t % 3 * 3 + 1 : 0)
    }, o.prototype.getLength = function () {
      return this.data.length
    }, o.prototype.getBitsLength = function () {
      return o.getBitsLength(this.data.length)
    }, o.prototype.write = function (t) {
      let e, n, r;
      for (e = 0; e + 3 <= this.data.length; e += 3) n = this.data.substr(e, 3), r = parseInt(n, 10), t.put(r, 10);
      const o = this.data.length - e;
      o > 0 && (n = this.data.substr(e), r = parseInt(n, 10), t.put(r, 3 * o + 1))
    }, t.exports = o
  }, function (t, e, n) {
    const r = n(21),
      o = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", " ", "$", "%", "*", "+", "-", ".", "/", ":"];

    function i(t) {
      this.mode = r.ALPHANUMERIC, this.data = t
    }

    i.getBitsLength = function (t) {
      return 11 * Math.floor(t / 2) + t % 2 * 6
    }, i.prototype.getLength = function () {
      return this.data.length
    }, i.prototype.getBitsLength = function () {
      return i.getBitsLength(this.data.length)
    }, i.prototype.write = function (t) {
      let e;
      for (e = 0; e + 2 <= this.data.length; e += 2) {
        let n = 45 * o.indexOf(this.data[e]);
        n += o.indexOf(this.data[e + 1]), t.put(n, 11)
      }
      this.data.length % 2 && t.put(o.indexOf(this.data[e]), 6)
    }, t.exports = i
  }, function (t, e, n) {
    const r = n(184), o = n(21);

    function i(t) {
      this.mode = o.BYTE, "string" == typeof t && (t = r(t)), this.data = new Uint8Array(t)
    }

    i.getBitsLength = function (t) {
      return 8 * t
    }, i.prototype.getLength = function () {
      return this.data.length
    }, i.prototype.getBitsLength = function () {
      return i.getBitsLength(this.data.length)
    }, i.prototype.write = function (t) {
      for (let e = 0, n = this.data.length; e < n; e++) t.put(this.data[e], 8)
    }, t.exports = i
  }, function (t, e, n) {
    "use strict";
    t.exports = function (t) {
      for (var e = [], n = t.length, r = 0; r < n; r++) {
        var o = t.charCodeAt(r);
        if (o >= 55296 && o <= 56319 && n > r + 1) {
          var i = t.charCodeAt(r + 1);
          i >= 56320 && i <= 57343 && (o = 1024 * (o - 55296) + i - 56320 + 65536, r += 1)
        }
        o < 128 ? e.push(o) : o < 2048 ? (e.push(o >> 6 | 192), e.push(63 & o | 128)) : o < 55296 || o >= 57344 && o < 65536 ? (e.push(o >> 12 | 224), e.push(o >> 6 & 63 | 128), e.push(63 & o | 128)) : o >= 65536 && o <= 1114111 ? (e.push(o >> 18 | 240), e.push(o >> 12 & 63 | 128), e.push(o >> 6 & 63 | 128), e.push(63 & o | 128)) : e.push(239, 191, 189)
      }
      return new Uint8Array(e).buffer
    }
  }, function (t, e, n) {
    const r = n(21), o = n(20);

    function i(t) {
      this.mode = r.KANJI, this.data = t
    }

    i.getBitsLength = function (t) {
      return 13 * t
    }, i.prototype.getLength = function () {
      return this.data.length
    }, i.prototype.getBitsLength = function () {
      return i.getBitsLength(this.data.length)
    }, i.prototype.write = function (t) {
      let e;
      for (e = 0; e < this.data.length; e++) {
        let n = o.toSJIS(this.data[e]);
        if (n >= 33088 && n <= 40956) n -= 33088; else {
          if (!(n >= 57408 && n <= 60351)) throw new Error("Invalid SJIS character: " + this.data[e] + "\nMake sure your charset is UTF-8");
          n -= 49472
        }
        n = 192 * (n >>> 8 & 255) + (255 & n), t.put(n, 13)
      }
    }, t.exports = i
  }, function (t, e, n) {
    "use strict";
    var r = {
      single_source_shortest_paths: function (t, e, n) {
        var o = {}, i = {};
        i[e] = 0;
        var s, a, c, u, f, l, h, p = r.PriorityQueue.make();
        for (p.push(e, 0); !p.empty();) for (c in a = (s = p.pop()).value, u = s.cost, f = t[a] || {}) f.hasOwnProperty(c) && (l = u + f[c], h = i[c], (void 0 === i[c] || h > l) && (i[c] = l, p.push(c, l), o[c] = a));
        if (void 0 !== n && void 0 === i[n]) {
          var d = ["Could not find a path from ", e, " to ", n, "."].join("");
          throw new Error(d)
        }
        return o
      }, extract_shortest_path_from_predecessor_list: function (t, e) {
        for (var n = [], r = e; r;) n.push(r), t[r], r = t[r];
        return n.reverse(), n
      }, find_path: function (t, e, n) {
        var o = r.single_source_shortest_paths(t, e, n);
        return r.extract_shortest_path_from_predecessor_list(o, n)
      }, PriorityQueue: {
        make: function (t) {
          var e, n = r.PriorityQueue, o = {};
          for (e in t = t || {}, n) n.hasOwnProperty(e) && (o[e] = n[e]);
          return o.queue = [], o.sorter = t.sorter || n.default_sorter, o
        }, default_sorter: function (t, e) {
          return t.cost - e.cost
        }, push: function (t, e) {
          var n = {value: t, cost: e};
          this.queue.push(n), this.queue.sort(this.sorter)
        }, pop: function () {
          return this.queue.shift()
        }, empty: function () {
          return 0 === this.queue.length
        }
      }
    };
    t.exports = r
  }, function (t, e, n) {
    const r = n(107);
    e.render = function (t, e, n) {
      let o = n, i = e;
      void 0 !== o || e && e.getContext || (o = e, e = void 0), e || (i = function () {
        try {
          return document.createElement("canvas")
        } catch (t) {
          throw new Error("You need to specify a canvas element")
        }
      }()), o = r.getOptions(o);
      const s = r.getImageWidth(t.modules.size, o), a = i.getContext("2d"),
        c = a.createImageData(s, s);
      return r.qrToImageData(c.data, t, o), function (t, e, n) {
        t.clearRect(0, 0, e.width, e.height), e.style || (e.style = {}), e.height = n, e.width = n, e.style.height = n + "px", e.style.width = n + "px"
      }(a, i, s), a.putImageData(c, 0, 0), i
    }, e.renderToDataURL = function (t, n, r) {
      let o = r;
      void 0 !== o || n && n.getContext || (o = n, n = void 0), o || (o = {});
      const i = e.render(t, n, o), s = o.type || "image/png", a = o.rendererOpts || {};
      return i.toDataURL(s, a.quality)
    }
  }, function (t, e, n) {
    const r = n(107);

    function o(t, e) {
      const n = t.a / 255, r = e + '="' + t.hex + '"';
      return n < 1 ? r + " " + e + '-opacity="' + n.toFixed(2).slice(1) + '"' : r
    }

    function i(t, e, n) {
      let r = t + e;
      return void 0 !== n && (r += " " + n), r
    }

    e.render = function (t, e, n) {
      const s = r.getOptions(e), a = t.modules.size, c = t.modules.data, u = a + 2 * s.margin,
        f = s.color.light.a ? "<path " + o(s.color.light, "fill") + ' d="M0 0h' + u + "v" + u + 'H0z"/>' : "",
        l = "<path " + o(s.color.dark, "stroke") + ' d="' + function (t, e, n) {
          let r = "", o = 0, s = !1, a = 0;
          for (let c = 0; c < t.length; c++) {
            const u = Math.floor(c % e), f = Math.floor(c / e);
            u || s || (s = !0), t[c] ? (a++, c > 0 && u > 0 && t[c - 1] || (r += s ? i("M", u + n, .5 + f + n) : i("m", o, 0), o = 0, s = !1), u + 1 < e && t[c + 1] || (r += i("h", a), a = 0)) : o++
          }
          return r
        }(c, a, s.margin) + '"/>', h = 'viewBox="0 0 ' + u + " " + u + '"',
        p = '<svg xmlns="http://www.w3.org/2000/svg" ' + (s.width ? 'width="' + s.width + '" height="' + s.width + '" ' : "") + h + ' shape-rendering="crispEdges">' + f + l + "</svg>\n";
      return "function" == typeof n && n(null, p), p
    }
  }, function (t, e, n) {
    "use strict";
    n(190);
    var r = n(3), o = n(54), i = n(7), s = "toString", a = /./[s], c = function (t) {
      n(10)(RegExp.prototype, s, t, !0)
    };
    n(4)((function () {
      return "/a/b" != a.call({source: "a", flags: "b"})
    })) ? c((function () {
      var t = r(this);
      return "/".concat(t.source, "/", "flags" in t ? t.flags : !i && t instanceof RegExp ? o.call(t) : void 0)
    })) : a.name != s && c((function () {
      return a.call(this)
    }))
  }, function (t, e, n) {
    n(7) && "g" != /./g.flags && n(8).f(RegExp.prototype, "flags", {configurable: !0, get: n(54)})
  }, function (t, e) {
  }, function (t, e, n) {
    var r;
    t.exports = (r = n(9), function (t) {
      var e = r, n = e.lib, o = n.WordArray, i = n.Hasher, s = e.algo, a = [];
      !function () {
        for (var e = 0; e < 64; e++) a[e] = 4294967296 * t.abs(t.sin(e + 1)) | 0
      }();
      var c = s.MD5 = i.extend({
        _doReset: function () {
          this._hash = new o.init([1732584193, 4023233417, 2562383102, 271733878])
        }, _doProcessBlock: function (t, e) {
          for (var n = 0; n < 16; n++) {
            var r = e + n, o = t[r];
            t[r] = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8)
          }
          var i = this._hash.words, s = t[e + 0], c = t[e + 1], p = t[e + 2], d = t[e + 3],
            y = t[e + 4], g = t[e + 5], v = t[e + 6], m = t[e + 7], w = t[e + 8], b = t[e + 9],
            x = t[e + 10], S = t[e + 11], E = t[e + 12], _ = t[e + 13], O = t[e + 14],
            T = t[e + 15], P = i[0], A = i[1], k = i[2], L = i[3];
          P = u(P, A, k, L, s, 7, a[0]), L = u(L, P, A, k, c, 12, a[1]), k = u(k, L, P, A, p, 17, a[2]), A = u(A, k, L, P, d, 22, a[3]), P = u(P, A, k, L, y, 7, a[4]), L = u(L, P, A, k, g, 12, a[5]), k = u(k, L, P, A, v, 17, a[6]), A = u(A, k, L, P, m, 22, a[7]), P = u(P, A, k, L, w, 7, a[8]), L = u(L, P, A, k, b, 12, a[9]), k = u(k, L, P, A, x, 17, a[10]), A = u(A, k, L, P, S, 22, a[11]), P = u(P, A, k, L, E, 7, a[12]), L = u(L, P, A, k, _, 12, a[13]), k = u(k, L, P, A, O, 17, a[14]), P = f(P, A = u(A, k, L, P, T, 22, a[15]), k, L, c, 5, a[16]), L = f(L, P, A, k, v, 9, a[17]), k = f(k, L, P, A, S, 14, a[18]), A = f(A, k, L, P, s, 20, a[19]), P = f(P, A, k, L, g, 5, a[20]), L = f(L, P, A, k, x, 9, a[21]), k = f(k, L, P, A, T, 14, a[22]), A = f(A, k, L, P, y, 20, a[23]), P = f(P, A, k, L, b, 5, a[24]), L = f(L, P, A, k, O, 9, a[25]), k = f(k, L, P, A, d, 14, a[26]), A = f(A, k, L, P, w, 20, a[27]), P = f(P, A, k, L, _, 5, a[28]), L = f(L, P, A, k, p, 9, a[29]), k = f(k, L, P, A, m, 14, a[30]), P = l(P, A = f(A, k, L, P, E, 20, a[31]), k, L, g, 4, a[32]), L = l(L, P, A, k, w, 11, a[33]), k = l(k, L, P, A, S, 16, a[34]), A = l(A, k, L, P, O, 23, a[35]), P = l(P, A, k, L, c, 4, a[36]), L = l(L, P, A, k, y, 11, a[37]), k = l(k, L, P, A, m, 16, a[38]), A = l(A, k, L, P, x, 23, a[39]), P = l(P, A, k, L, _, 4, a[40]), L = l(L, P, A, k, s, 11, a[41]), k = l(k, L, P, A, d, 16, a[42]), A = l(A, k, L, P, v, 23, a[43]), P = l(P, A, k, L, b, 4, a[44]), L = l(L, P, A, k, E, 11, a[45]), k = l(k, L, P, A, T, 16, a[46]), P = h(P, A = l(A, k, L, P, p, 23, a[47]), k, L, s, 6, a[48]), L = h(L, P, A, k, m, 10, a[49]), k = h(k, L, P, A, O, 15, a[50]), A = h(A, k, L, P, g, 21, a[51]), P = h(P, A, k, L, E, 6, a[52]), L = h(L, P, A, k, d, 10, a[53]), k = h(k, L, P, A, x, 15, a[54]), A = h(A, k, L, P, c, 21, a[55]), P = h(P, A, k, L, w, 6, a[56]), L = h(L, P, A, k, T, 10, a[57]), k = h(k, L, P, A, v, 15, a[58]), A = h(A, k, L, P, _, 21, a[59]), P = h(P, A, k, L, y, 6, a[60]), L = h(L, P, A, k, S, 10, a[61]), k = h(k, L, P, A, p, 15, a[62]), A = h(A, k, L, P, b, 21, a[63]), i[0] = i[0] + P | 0, i[1] = i[1] + A | 0, i[2] = i[2] + k | 0, i[3] = i[3] + L | 0
        }, _doFinalize: function () {
          var e = this._data, n = e.words, r = 8 * this._nDataBytes, o = 8 * e.sigBytes;
          n[o >>> 5] |= 128 << 24 - o % 32;
          var i = t.floor(r / 4294967296), s = r;
          n[15 + (o + 64 >>> 9 << 4)] = 16711935 & (i << 8 | i >>> 24) | 4278255360 & (i << 24 | i >>> 8), n[14 + (o + 64 >>> 9 << 4)] = 16711935 & (s << 8 | s >>> 24) | 4278255360 & (s << 24 | s >>> 8), e.sigBytes = 4 * (n.length + 1), this._process();
          for (var a = this._hash, c = a.words, u = 0; u < 4; u++) {
            var f = c[u];
            c[u] = 16711935 & (f << 8 | f >>> 24) | 4278255360 & (f << 24 | f >>> 8)
          }
          return a
        }, clone: function () {
          var t = i.clone.call(this);
          return t._hash = this._hash.clone(), t
        }
      });

      function u(t, e, n, r, o, i, s) {
        var a = t + (e & n | ~e & r) + o + s;
        return (a << i | a >>> 32 - i) + e
      }

      function f(t, e, n, r, o, i, s) {
        var a = t + (e & r | n & ~r) + o + s;
        return (a << i | a >>> 32 - i) + e
      }

      function l(t, e, n, r, o, i, s) {
        var a = t + (e ^ n ^ r) + o + s;
        return (a << i | a >>> 32 - i) + e
      }

      function h(t, e, n, r, o, i, s) {
        var a = t + (n ^ (e | ~r)) + o + s;
        return (a << i | a >>> 32 - i) + e
      }

      e.MD5 = i._createHelper(c), e.HmacMD5 = i._createHmacHelper(c)
    }(Math), r.MD5)
  }, function (t, e, n) {
    var r, o, i, s, a, c, u, f;
    t.exports = (f = n(9), o = (r = f).lib, i = o.WordArray, s = o.Hasher, a = r.algo, c = [], u = a.SHA1 = s.extend({
      _doReset: function () {
        this._hash = new i.init([1732584193, 4023233417, 2562383102, 271733878, 3285377520])
      }, _doProcessBlock: function (t, e) {
        for (var n = this._hash.words, r = n[0], o = n[1], i = n[2], s = n[3], a = n[4], u = 0; u < 80; u++) {
          if (u < 16) c[u] = 0 | t[e + u]; else {
            var f = c[u - 3] ^ c[u - 8] ^ c[u - 14] ^ c[u - 16];
            c[u] = f << 1 | f >>> 31
          }
          var l = (r << 5 | r >>> 27) + a + c[u];
          l += u < 20 ? 1518500249 + (o & i | ~o & s) : u < 40 ? 1859775393 + (o ^ i ^ s) : u < 60 ? (o & i | o & s | i & s) - 1894007588 : (o ^ i ^ s) - 899497514, a = s, s = i, i = o << 30 | o >>> 2, o = r, r = l
        }
        n[0] = n[0] + r | 0, n[1] = n[1] + o | 0, n[2] = n[2] + i | 0, n[3] = n[3] + s | 0, n[4] = n[4] + a | 0
      }, _doFinalize: function () {
        var t = this._data, e = t.words, n = 8 * this._nDataBytes, r = 8 * t.sigBytes;
        return e[r >>> 5] |= 128 << 24 - r % 32, e[14 + (r + 64 >>> 9 << 4)] = Math.floor(n / 4294967296), e[15 + (r + 64 >>> 9 << 4)] = n, t.sigBytes = 4 * e.length, this._process(), this._hash
      }, clone: function () {
        var t = s.clone.call(this);
        return t._hash = this._hash.clone(), t
      }
    }), r.SHA1 = s._createHelper(u), r.HmacSHA1 = s._createHmacHelper(u), f.SHA1)
  }, function (t, e, n) {
    var r, o, i, s;
    t.exports = (r = n(9), i = (o = r).lib.Base, s = o.enc.Utf8, void (o.algo.HMAC = i.extend({
      init: function (t, e) {
        t = this._hasher = new t.init, "string" == typeof e && (e = s.parse(e));
        var n = t.blockSize, r = 4 * n;
        e.sigBytes > r && (e = t.finalize(e)), e.clamp();
        for (var o = this._oKey = e.clone(), i = this._iKey = e.clone(), a = o.words, c = i.words, u = 0; u < n; u++) a[u] ^= 1549556828, c[u] ^= 909522486;
        o.sigBytes = i.sigBytes = r, this.reset()
      }, reset: function () {
        var t = this._hasher;
        t.reset(), t.update(this._iKey)
      }, update: function (t) {
        return this._hasher.update(t), this
      }, finalize: function (t) {
        var e = this._hasher, n = e.finalize(t);
        return e.reset(), e.finalize(this._oKey.clone().concat(n))
      }
    })))
  }, function (t, e, n) {
    "use strict";
    n.r(e);
    n(30), n(43), n(68), n(70), n(72), n(75), n(46), n(37), n(49), n(83), n(85), n(130), n(51), n(52), n(88), n(89), n(138), n(91), n(139), n(140), n(141);
    var r = n(29), o = n.n(r);
    n(160);

    function i(t) {
      return i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
        return typeof t
      } : function (t) {
        return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
      }, i(t)
    }

    function s(t, e) {
      for (var n = 0; n < e.length; n++) {
        var r = e[n];
        r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, a(r.key), r)
      }
    }

    function a(t) {
      var e = function (t, e) {
        if ("object" !== i(t) || null === t) return t;
        var n = t[Symbol.toPrimitive];
        if (void 0 !== n) {
          var r = n.call(t, e || "default");
          if ("object" !== i(r)) return r;
          throw new TypeError("@@toPrimitive must return a primitive value.")
        }
        return ("string" === e ? String : Number)(t)
      }(t, "string");
      return "symbol" === i(e) ? e : String(e)
    }

    o.a.interceptors.response.use((function (t) {
      return t.data
    }), (function (t) {
      return t.response && 401 === t.response.status ? (t.errorMessage = "鉴权失败", Promise.reject(t)) : Promise.reject(t)
    })), o.a.defaults.headers.post["Content-Type"] = "application/json", o.a.defaults.withCredentials = !0;
    var c = function () {
        function t(e) {
          !function (t, e) {
            if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function")
          }(this, t), this.reqTime = ""
        }

        var e, n, r;
        return e = t, (n = [{
          key: "outernet", value: function (t) {
            var e = new URLSearchParams;
            e.append("timestamp", this.reqTime);
            for (var n = t.data, r = Object.keys(n), o = 0; o < r.length; o++) {
              var i = r[o], s = n[i];
              "string" != typeof s && (s = JSON.stringify(s)), "null" !== s && "undefined" !== s && void 0 !== s && s.trim().length > 0 && e.append(i, s)
            }
            t.data = e
          }
        }, {
          key: "ajax", value: function (t) {
            return this.reqTime = (new Date).getTime(), t.data.isInnerSys || this.outernet(t), delete t.data.isInnerSys, delete t.data.sysCode, delete t.data.signature, delete t.data.reqTime, delete t.data.sdkVersion, o()(t)
          }
        }]) && s(e.prototype, n), r && s(e, r), Object.defineProperty(e, "prototype", {writable: !1}), t
      }(), u = (n(161), n(163), n(165), n(166), n(109)), f = n.n(u), l = (n(189), n(110)), h = n.n(l),
      p = n(57), d = n.n(p), y = n(58), g = n.n(y), v = n(111), m = n.n(v), w = n(112), b = n.n(w),
      x = n(113), S = n.n(x), E = g.a.parse("f8f0de7f21e17a249fcdc40cdb386691");

    function _(t) {
      return _ = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
        return typeof t
      } : function (t) {
        return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
      }, _(t)
    }

    function O() {
      O = function () {
        return t
      };
      var t = {}, e = Object.prototype, n = e.hasOwnProperty,
        r = Object.defineProperty || function (t, e, n) {
          t[e] = n.value
        }, o = "function" == typeof Symbol ? Symbol : {}, i = o.iterator || "@@iterator",
        s = o.asyncIterator || "@@asyncIterator", a = o.toStringTag || "@@toStringTag";

      function c(t, e, n) {
        return Object.defineProperty(t, e, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        }), t[e]
      }

      try {
        c({}, "")
      } catch (t) {
        c = function (t, e, n) {
          return t[e] = n
        }
      }

      function u(t, e, n, o) {
        var i = e && e.prototype instanceof h ? e : h, s = Object.create(i.prototype),
          a = new P(o || []);
        return r(s, "_invoke", {value: x(t, n, a)}), s
      }

      function f(t, e, n) {
        try {
          return {type: "normal", arg: t.call(e, n)}
        } catch (t) {
          return {type: "throw", arg: t}
        }
      }

      t.wrap = u;
      var l = {};

      function h() {
      }

      function p() {
      }

      function d() {
      }

      var y = {};
      c(y, i, (function () {
        return this
      }));
      var g = Object.getPrototypeOf, v = g && g(g(A([])));
      v && v !== e && n.call(v, i) && (y = v);
      var m = d.prototype = h.prototype = Object.create(y);

      function w(t) {
        ["next", "throw", "return"].forEach((function (e) {
          c(t, e, (function (t) {
            return this._invoke(e, t)
          }))
        }))
      }

      function b(t, e) {
        function o(r, i, s, a) {
          var c = f(t[r], t, i);
          if ("throw" !== c.type) {
            var u = c.arg, l = u.value;
            return l && "object" == _(l) && n.call(l, "__await") ? e.resolve(l.__await).then((function (t) {
              o("next", t, s, a)
            }), (function (t) {
              o("throw", t, s, a)
            })) : e.resolve(l).then((function (t) {
              u.value = t, s(u)
            }), (function (t) {
              return o("throw", t, s, a)
            }))
          }
          a(c.arg)
        }

        var i;
        r(this, "_invoke", {
          value: function (t, n) {
            function r() {
              return new e((function (e, r) {
                o(t, n, e, r)
              }))
            }

            return i = i ? i.then(r, r) : r()
          }
        })
      }

      function x(t, e, n) {
        var r = "suspendedStart";
        return function (o, i) {
          if ("executing" === r) throw new Error("Generator is already running");
          if ("completed" === r) {
            if ("throw" === o) throw i;
            return {value: void 0, done: !0}
          }
          for (n.method = o, n.arg = i; ;) {
            var s = n.delegate;
            if (s) {
              var a = S(s, n);
              if (a) {
                if (a === l) continue;
                return a
              }
            }
            if ("next" === n.method) n.sent = n._sent = n.arg; else if ("throw" === n.method) {
              if ("suspendedStart" === r) throw r = "completed", n.arg;
              n.dispatchException(n.arg)
            } else "return" === n.method && n.abrupt("return", n.arg);
            r = "executing";
            var c = f(t, e, n);
            if ("normal" === c.type) {
              if (r = n.done ? "completed" : "suspendedYield", c.arg === l) continue;
              return {value: c.arg, done: n.done}
            }
            "throw" === c.type && (r = "completed", n.method = "throw", n.arg = c.arg)
          }
        }
      }

      function S(t, e) {
        var n = e.method, r = t.iterator[n];
        if (void 0 === r) return e.delegate = null, "throw" === n && t.iterator.return && (e.method = "return", e.arg = void 0, S(t, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), l;
        var o = f(r, t.iterator, e.arg);
        if ("throw" === o.type) return e.method = "throw", e.arg = o.arg, e.delegate = null, l;
        var i = o.arg;
        return i ? i.done ? (e[t.resultName] = i.value, e.next = t.nextLoc, "return" !== e.method && (e.method = "next", e.arg = void 0), e.delegate = null, l) : i : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, l)
      }

      function E(t) {
        var e = {tryLoc: t[0]};
        1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e)
      }

      function T(t) {
        var e = t.completion || {};
        e.type = "normal", delete e.arg, t.completion = e
      }

      function P(t) {
        this.tryEntries = [{tryLoc: "root"}], t.forEach(E, this), this.reset(!0)
      }

      function A(t) {
        if (t || "" === t) {
          var e = t[i];
          if (e) return e.call(t);
          if ("function" == typeof t.next) return t;
          if (!isNaN(t.length)) {
            var r = -1, o = function e() {
              for (; ++r < t.length;) if (n.call(t, r)) return e.value = t[r], e.done = !1, e;
              return e.value = void 0, e.done = !0, e
            };
            return o.next = o
          }
        }
        throw new TypeError(_(t) + " is not iterable")
      }

      return p.prototype = d, r(m, "constructor", {
        value: d,
        configurable: !0
      }), r(d, "constructor", {
        value: p,
        configurable: !0
      }), p.displayName = c(d, a, "GeneratorFunction"), t.isGeneratorFunction = function (t) {
        var e = "function" == typeof t && t.constructor;
        return !!e && (e === p || "GeneratorFunction" === (e.displayName || e.name))
      }, t.mark = function (t) {
        return Object.setPrototypeOf ? Object.setPrototypeOf(t, d) : (t.__proto__ = d, c(t, a, "GeneratorFunction")), t.prototype = Object.create(m), t
      }, t.awrap = function (t) {
        return {__await: t}
      }, w(b.prototype), c(b.prototype, s, (function () {
        return this
      })), t.AsyncIterator = b, t.async = function (e, n, r, o, i) {
        void 0 === i && (i = Promise);
        var s = new b(u(e, n, r, o), i);
        return t.isGeneratorFunction(n) ? s : s.next().then((function (t) {
          return t.done ? t.value : s.next()
        }))
      }, w(m), c(m, a, "Generator"), c(m, i, (function () {
        return this
      })), c(m, "toString", (function () {
        return "[object Generator]"
      })), t.keys = function (t) {
        var e = Object(t), n = [];
        for (var r in e) n.push(r);
        return n.reverse(), function t() {
          for (; n.length;) {
            var r = n.pop();
            if (r in e) return t.value = r, t.done = !1, t
          }
          return t.done = !0, t
        }
      }, t.values = A, P.prototype = {
        constructor: P, reset: function (t) {
          if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = !1, this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEach(T), !t) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = void 0)
        }, stop: function () {
          this.done = !0;
          var t = this.tryEntries[0].completion;
          if ("throw" === t.type) throw t.arg;
          return this.rval
        }, dispatchException: function (t) {
          if (this.done) throw t;
          var e = this;

          function r(n, r) {
            return s.type = "throw", s.arg = t, e.next = n, r && (e.method = "next", e.arg = void 0), !!r
          }

          for (var o = this.tryEntries.length - 1; o >= 0; --o) {
            var i = this.tryEntries[o], s = i.completion;
            if ("root" === i.tryLoc) return r("end");
            if (i.tryLoc <= this.prev) {
              var a = n.call(i, "catchLoc"), c = n.call(i, "finallyLoc");
              if (a && c) {
                if (this.prev < i.catchLoc) return r(i.catchLoc, !0);
                if (this.prev < i.finallyLoc) return r(i.finallyLoc)
              } else if (a) {
                if (this.prev < i.catchLoc) return r(i.catchLoc, !0)
              } else {
                if (!c) throw new Error("try statement without catch or finally");
                if (this.prev < i.finallyLoc) return r(i.finallyLoc)
              }
            }
          }
        }, abrupt: function (t, e) {
          for (var r = this.tryEntries.length - 1; r >= 0; --r) {
            var o = this.tryEntries[r];
            if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
              var i = o;
              break
            }
          }
          i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
          var s = i ? i.completion : {};
          return s.type = t, s.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, l) : this.complete(s)
        }, complete: function (t, e) {
          if ("throw" === t.type) throw t.arg;
          return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), l
        }, finish: function (t) {
          for (var e = this.tryEntries.length - 1; e >= 0; --e) {
            var n = this.tryEntries[e];
            if (n.finallyLoc === t) return this.complete(n.completion, n.afterLoc), T(n), l
          }
        }, catch: function (t) {
          for (var e = this.tryEntries.length - 1; e >= 0; --e) {
            var n = this.tryEntries[e];
            if (n.tryLoc === t) {
              var r = n.completion;
              if ("throw" === r.type) {
                var o = r.arg;
                T(n)
              }
              return o
            }
          }
          throw new Error("illegal catch attempt")
        }, delegateYield: function (t, e, n) {
          return this.delegate = {
            iterator: A(t),
            resultName: e,
            nextLoc: n
          }, "next" === this.method && (this.arg = void 0), l
        }
      }, t
    }

    function T(t, e, n, r, o, i, s) {
      try {
        var a = t[i](s), c = a.value
      } catch (t) {
        return void n(t)
      }
      a.done ? e(c) : Promise.resolve(c).then(r, o)
    }

    function P(t) {
      return function () {
        var e = this, n = arguments;
        return new Promise((function (r, o) {
          var i = t.apply(e, n);

          function s(t) {
            T(i, r, o, s, a, "next", t)
          }

          function a(t) {
            T(i, r, o, s, a, "throw", t)
          }

          s(void 0)
        }))
      }
    }

    function A(t, e) {
      for (var n = 0; n < e.length; n++) {
        var r = e[n];
        r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, k(r.key), r)
      }
    }

    function k(t) {
      var e = function (t, e) {
        if ("object" !== _(t) || null === t) return t;
        var n = t[Symbol.toPrimitive];
        if (void 0 !== n) {
          var r = n.call(t, e || "default");
          if ("object" !== _(r)) return r;
          throw new TypeError("@@toPrimitive must return a primitive value.")
        }
        return ("string" === e ? String : Number)(t)
      }(t, "string");
      return "symbol" === _(e) ? e : String(e)
    }

    var L = function () {
      function t() {
        !function (t, e) {
          if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function")
        }(this, t), this.data = {}, this.unit = "mm", this.fontUnit = "pt", this.lineUnit = "pt", this.qrcodeOpts = {
          errorCorrectionLevel: "L",
          margin: 0
        }, this.barcodeOpts = {
          displayValue: !1,
          font: "Arial",
          background: "#ffffff",
          lineColor: "#000000",
          margin: 0
        }, this.contentBox = document.createElement("div"), this.LODOP = null, this.printer = null
      }

      var e, n, r, o, i, s, a;
      return e = t, n = [{
        key: "renderAsync", value: (a = P(O().mark((function t(e, n) {
          var r, o, i, s, a, c, u, f, l, h, p, d;
          return O().wrap((function (t) {
            for (; ;) switch (t.prev = t.next) {
              case 0:
                r = 0;
              case 1:
                if (!(r < e.length)) {
                  t.next = 24;
                  break
                }
                o = e[r], i = o.contents, s = o.waybillNo, a = 0;
              case 4:
                if (!(a < i.length)) {
                  t.next = 21;
                  break
                }
                return c = i[a], u = c.page, f = c.area, l = u.height, h = u.width, p = l + "mm", d = h + "mm", this.LODOP.SET_PRINT_PAGESIZE(0, d, p, ""), this.LODOP.NewPage(), t.next = 14, this.render(c);
              case 14:
                this.LODOP.SET_PRINT_MODE("CUSTOM_TASK_NAME", "面单打印" + s + f), null !== this.printer && this.LODOP.SET_PRINTER_INDEX(this.printer), "PREVIEW" === n.lodopFn && this.LODOP.SET_PRINT_MODE("AUTO_CLOSE_PREWINDOW", 1);
              case 18:
                a++, t.next = 4;
                break;
              case 21:
                r++, t.next = 1;
                break;
              case 24:
                return t.abrupt("return", {code: 1, msg: "success"});
              case 25:
              case"end":
                return t.stop()
            }
          }), t, this)
        }))), function (t, e) {
          return a.apply(this, arguments)
        })
      }, {
        key: "renderAsyncA4", value: (s = P(O().mark((function t(e, n) {
          var r, o, i, s, a, c, u;
          return O().wrap((function (t) {
            for (; ;) switch (t.prev = t.next) {
              case 0:
                this.LODOP.SET_PRINT_PAGESIZE(1, "2970", "2100", "A4"), this.LODOP.NewPage(), r = 0;
              case 3:
                if (!(r < e.length)) {
                  t.next = 30;
                  break
                }
                o = e[r], i = o.contents, s = o.waybillNo, a = 0;
              case 6:
                if (!(a < i.length)) {
                  t.next = 27;
                  break
                }
                if (a > 0 && this.LODOP.NewPage(), c = i[a], u = c.area, "A4_copy" !== n.pageType) {
                  t.next = 13;
                  break
                }
                return t.next = 13, this.render(c, "A4_copy");
              case 13:
                if ("A4" !== n.pageType || 0 !== r) {
                  t.next = 16;
                  break
                }
                return t.next = 16, this.render(c);
              case 16:
                if ("A4" !== n.pageType || 1 !== r) {
                  t.next = 19;
                  break
                }
                return t.next = 19, this.render(c, "A4");
              case 19:
                this.LODOP.SET_PRINT_MODE("CUSTOM_TASK_NAME", "面单打印" + s + u), this.LODOP.SET_PRINT_MODE("PRINT_PAGE_PERCENT", "95%"), null !== this.printer && this.LODOP.SET_PRINTER_INDEX(this.printer), "PREVIEW" === n.lodopFn && this.LODOP.SET_PRINT_MODE("AUTO_CLOSE_PREWINDOW", 1);
              case 24:
                a++, t.next = 6;
                break;
              case 27:
                r++, t.next = 3;
                break;
              case 30:
                return t.abrupt("return", {code: 1, msg: "success"});
              case 31:
              case"end":
                return t.stop()
            }
          }), t, this)
        }))), function (t, e) {
          return s.apply(this, arguments)
        })
      }, {
        key: "render", value: (i = P(O().mark((function t(e, n) {
          var r, o, i, s, a, c, u, f, l, p, y;
          return O().wrap((function (t) {
            for (; ;) switch (t.prev = t.next) {
              case 0:
                r = e.items, o = e.page, i = this.renderPage(o), s = 0;
              case 3:
                if (!(s < r.length)) {
                  t.next = 40;
                  break
                }
                if (a = r[s], c = a.type, u = a.codeType, (f = a.value) && -1 !== f.indexOf("AES##") && (a.value = f.replace(/AES##.+?##AES/g, (function (t) {
                  return t = t.replace(/AES##|##AES/g, ""), e = t, n = g.a.parse(e), r = d.a.stringify(n), h.a.decrypt(r, E, {
                    mode: b.a,
                    padding: S.a
                  }).toString(m.a).toString();
                  var e, n, r
                }))), "image" === c && ("A4" === n ? this.renderImage(a, "A4") : this.renderImage(a), "A4_copy" === n && this.renderImage(a, "A4_copy")), "barcode" !== c) {
                  t.next = 25;
                  break
                }
                if (f) {
                  t.next = 12;
                  break
                }
                return t.abrupt("continue", 37);
              case 12:
                if ("qrcode" !== u) {
                  t.next = 23;
                  break
                }
                if ("A4" !== n) {
                  t.next = 18;
                  break
                }
                return t.next = 16, this.renderQRCode(a, "A4");
              case 16:
                t.next = 20;
                break;
              case 18:
                return t.next = 20, this.renderQRCode(a);
              case 20:
                "A4_copy" === n && this.renderQRCode(a, "A4_copy"), t.next = 25;
                break;
              case 23:
                "A4" === n ? this.createBarCode(a, "A4") : this.createBarCode(a), "A4_copy" === n && this.createBarCode(a, "A4_copy");
              case 25:
                if ("text" !== c) {
                  t.next = 35;
                  break
                }
                if (!a.rotation) {
                  t.next = 31;
                  break
                }
                "A4" === n ? this.renderRotateText(a, "A4") : this.renderRotateText(a), "A4_copy" === n && this.renderRotateText(a, "A4_copy"), t.next = 35;
                break;
              case 31:
                return t.next = 33, this.renderText(a);
              case 33:
                l = t.sent, i.appendChild(l);
              case 35:
                "line" === c && (p = this.renderLine(a), i.appendChild(p)), "rectangle" === c && (y = this.renderRectangle(a), i.appendChild(y));
              case 37:
                s++, t.next = 3;
                break;
              case 40:
                this.getHtm(i, n);
              case 41:
              case"end":
                return t.stop()
            }
          }), t, this)
        }))), function (t, e) {
          return i.apply(this, arguments)
        })
      }, {
        key: "getHtm", value: function (t, e) {
          var n = '<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge" /></head><body>' + t.outerHTML + "</body></html>";
          "A4" === e ? this.LODOP.ADD_PRINT_HTM(0, "150mm", "100%", "100%", n) : this.LODOP.ADD_PRINT_HTM(0, 0, "100%", "100%", n), "A4_copy" === e && this.LODOP.ADD_PRINT_HTM(0, "150mm", "100%", "100%", n)
        }
      }, {
        key: "renderPage", value: function (t) {
          var e = document.createElement("div");
          e.style.position = "relative", e.style.boxSizing = "border-box", e.style.overflow = "hidden", e.style.pageBreakAfter = "always";
          var n = t.height + "mm", r = t.width + "mm";
          return e.style.height = n, e.style.width = r, e.style.whiteSpace = "pre-line", e
        }
      }, {
        key: "calculateFontSize", value: function (t, e, n, r) {
          var o = document.createElement("div");
          o.style.height = n + "mm", o.style.width = e + "mm", o.style.opacity = 0, o.style.lineHeight = 1.1, o.style.position = "fixed";
          var i = document.createElement("div");
          for (i.innerText = t, i.style.fontSize = r + "pt", o.appendChild(i), document.body.appendChild(o); o.scrollHeight > Math.ceil(3.779 * n);) if (r -= .2, i.style.fontSize = r + "pt", r < 9 && (i.style.transformOrigin = "0 top", i.style.transform = "scale(".concat(r / 9, ")")), r <= 0) return 9;
          return document.body.removeChild(o), r
        }
      }, {
        key: "renderText", value: function (t) {
          var e = t.value, n = t.left, r = t.top, o = t.width, i = t.height, s = t.fontSize,
            a = t.transparency, c = t.fontName, u = t.bold, f = t.italic, l = t.underLine,
            h = t.halignment, p = t.valignment, d = t.rotation, y = t.color, g = t.lineSpacing,
            v = t.textScale, m = t.fontSizeLarge;
          if (1 === v) try {
            s = this.calculateFontSize(e, o, i, m || s)
          } catch (t) {
            console.log(t, "error")
          }
          var w = document.createElement("div");
          w.style.overflow = "hidden", w.style.position = "absolute", w.style.left = n + this.unit, w.style.top = r + this.unit, w.style.width = o + this.unit, w.style.height = i + this.unit, w.style.fontSize = 0;
          var b = document.createElement("span");
          b.innerHTML = e, b.style.whiteSpace = "pre-wrap", b.style.wordBreak = "break-all", b.style.width = o + this.unit, b.style.height = i + this.unit, b.style.letterSpacing = g + this.unit, b.style.fontSize = s + this.fontUnit;
          var x = "";
          if (7 === s && (x = 7.6), 6 === s && (x = 6.5), s >= 20 && (x = 1.4 * s), s < 6 && (x = 8), x && (b.style.lineHeight = x + this.fontUnit), s < 12 && (c = "宋体" !== c && c ? c : '"黑体",Arial'), b.style.fontFamily = c || '"宋体","黑体",Arial', b.style.color = y, "#ffffff" !== y && "#FFFFFF" !== y || (w.style.backgroundColor = "#000000"), a > 0 && (b.style.color = this.hexToRgba(y, a / 255)), b.style.fontWeight = 1 === u ? "bold" : "normal", b.style.fontStyle = 1 === f ? "italic" : "normal", b.style.textDecoration = 1 === l ? "underline" : "none", 1 === h ? b.style.textAlign = "center" : 2 === h && (b.style.textAlign = "right"), 1 === p ? (b.style.verticalAlign = "middle", b.style.display = "-webkit-box", b.style.display = "-ms-flexbox", b.style.display = "flex", b.style.webkitBoxAlign = "center", b.style.msFlexAlign = "center", b.style.alignItems = "center", b.style.msFlexFlow = "wrap", b.style.flexFlow = "wrap", 1 === h && (b.style.justifyContent = "center"), 2 === h && (b.style.flexDirection = "row-reverse")) : 2 === p ? (b.style.display = "flex", b.style.alignItems = "flex-end", 1 === h && (b.style.justifyContent = "center"), 2 === h && (b.style.flexDirection = "row-reverse")) : b.style.verticalAlign = "top", w = this.setEleRotation(w, d), d) {
            w.style.MozTransformOrigin = "0 0", w.style.OTransformOrigin = "0 0", w.style.msTransformOrigin = "0 0", w.style.transformOrigin = "0 0", w.style.webkitTransformOrigin = "0 0", w.style.width = i + this.unit, w.style.height = o + this.unit;
            var S = b.style.width, E = b.style.height;
            b.style.width = E, b.style.height = S, 1 === d && (w.style.top = r + i + this.unit), 2 === d && (w.style.left = n + o + this.unit)
          }
          return s < 0 && (b = this.setScale(.001, b)), b.style.position = "absolute", b.style.top = "0", b.style.left = "0", b.style.right = "0", b.style.bottom = "0", new Promise((function (t, e) {
            w.appendChild(b), t(w)
          }))
        }
      }, {
        key: "renderRotateText", value: function (t, e) {
          e && e.includes("A4") && (t.left = t.left + 150);
          var n = t.value, r = t.fontSize, o = t.fontName, i = t.color, s = t.lineSpacing;
          this.addLodopItem(t, "ADD_PRINT_TEXT", n), this.LODOP.SET_PRINT_STYLEA(0, "FontName", o), this.LODOP.SET_PRINT_STYLEA(0, "FontSize", r), this.LODOP.SET_PRINT_STYLEA(0, "FontColor", i), this.LODOP.SET_PRINT_STYLEA(0, "ItemLetterSpacing", s)
        }
      }, {
        key: "hexToRgba", value: function (t, e) {
          return "rgba(".concat(parseInt("0x" + t.slice(1, 3)), ",").concat(parseInt("0x" + t.slice(3, 5)), ",").concat(parseInt("0x" + t.slice(5, 7)), ",").concat(e, " )")
        }
      }, {
        key: "setScale", value: function (t, e) {
          return e.style.transformOrigin = "0 top", e.style.MozTransformOrigin = "0 top", e.style.msTransformOrigin = "0 top", e.style.webkitTransformOrigin = "0 top", e.style.OTransformOrigin = "0 top", e.style.MozTransform = "scale(".concat(t, ")"), e.style.OTransform = "scale(".concat(t, ")"), e.style.msTransform = "scale(".concat(t, ")"), e.style.transform = "scale(".concat(t, ")"), e.style.webkitTransform = "scale(".concat(t, ")"), e
        }
      }, {
        key: "scaleFontSize", value: function (t, e) {
          var n = this;
          if ((t = Number(t) / (4 / 3)) >= 12) return e;
          var r = .8, o = e.innerText.split("");
          return e.innerHTML = "", e.style.fontSize = 0, o.map((function (o) {
            var i = document.createElement("span");
            i.style.display = "inline-block", i.style.width = "12px", i.style.height = "12px", i.style.fontSize = t + n.fontUnit, i.innerHTML = o, i.style.transformOrigin = "0 top", i.style.MozTransformOrigin = "0 top", i.style.msTransformOrigin = "0 top", i.style.webkitTransformOrigin = "0 top", i.style.OTransformOrigin = "0 top", i.style.MozTransform = "scale(".concat(r, ")"), i.style.OTransform = "scale(".concat(r, ")"), i.style.msTransform = "scale(".concat(r, ")"), i.style.transform = "scale(".concat(r, ")"), i.style.webkitTransform = "scale(".concat(r, ")"), e.appendChild(i)
          })), e
        }
      }, {
        key: "renderLine", value: function (t) {
          var e = t.lineStyle, n = t.left, r = t.top, o = t.width, i = t.height, s = t.color,
            a = t.rotation, c = document.createElement("div");
          c.style.position = "absolute", c.style.left = n + this.unit, c.style.top = r + this.unit, c.style.width = o + this.unit;
          var u = 1 === e ? "dashed" : 2 === e || 3 === e ? "dotted" : "solid", f = s || "#000000";
          return i <= 0 ? c.style.borderTop = "1pt ".concat(u, " ").concat(f, " ") : (c.style.height = i + this.unit, c.style.borderLeft = "1pt ".concat(u, " ").concat(f, " ")), c = this.setEleRotation(c, a)
        }
      }, {
        key: "renderRectangle", value: function (t) {
          var e = t.top, n = t.left, r = t.width, o = t.height, i = t.lineStyle, s = t.color,
            a = t.rotation, c = document.createElement("div");
          c.style.position = "absolute", c.style.left = n + this.unit, c.style.top = e + this.unit, c.style.width = r - .376 + this.unit, c.style.height = o - .376 + this.unit, c.style.background = s || "transparent";
          var u = 1 === i ? "dashed" : 2 === i || 3 === i ? "dotted" : "solid", f = s || "#000000";
          return c.style.border = "1pt ".concat(u, " ").concat(f, " "), c = this.setEleRotation(c, a)
        }
      }, {
        key: "renderImage", value: function (t, e) {
          e && e.includes("A4") && (t.left = t.left + 150);
          var n = t.value, r = t.scale;
          if ("" === n) return "";
          var o = "";
          o = /^((ht|f)tps?):\/\/[^\s]*/gi.test(n) ? '<img border="0" src="' + n + '" />' : "data:image/png;base64," + n, this.addLodopItem(t, "ADD_PRINT_IMAGE", o), 1 === r ? this.LODOP.SET_PRINT_STYLEA(0, "Stretch", 1) : 0 === r && this.LODOP.SET_PRINT_STYLEA(0, "Stretch", 2)
        }
      }, {
        key: "renderQRCode", value: (o = P(O().mark((function t(e, n) {
          var r, o, i, s, a, c, u, l, h;
          return O().wrap((function (t) {
            for (; ;) switch (t.prev = t.next) {
              case 0:
                return n && n.includes("A4") && (e.left = e.left + 150), r = e.value, o = e.left, i = e.top, s = e.width, a = e.height, c = document.createElement("img"), (u = document.createElement("div")).style.position = "absolute", u.style.left = o + this.unit, u.style.top = i + this.unit, u.style.width = s + this.unit, u.style.height = a + this.unit, c.style.height = "100%", c.style.width = "100%", l = Object.assign({
                  width: 10,
                  height: 10
                }, this.qrcodeOpts), t.next = 14, f.a.toDataURL(r, l);
              case 14:
                h = t.sent, this.addLodopItem(e, "ADD_PRINT_IMAGE", h), this.LODOP.SET_PRINT_STYLEA(0, "Stretch", 1);
              case 17:
              case"end":
                return t.stop()
            }
          }), t, this)
        }))), function (t, e) {
          return o.apply(this, arguments)
        })
      }, {
        key: "createBarCode", value: function (t, e) {
          e && e.includes("A4") && (t.left = t.left + 150);
          var n = t.value, r = t.fontSize, o = t.showBarText;
          this.addLodopItem(t, "ADD_PRINT_BARCODE", "128Auto", n), this.LODOP.SET_PRINT_STYLEA(0, "ShowBarText", o ? 1 : 0), this.LODOP.SET_PRINT_STYLEA(0, "FontSize", r)
        }
      }, {
        key: "addLodopItem", value: function (t, e, n, r) {
          var o = JSON.parse(JSON.stringify(t)), i = this.setLodopItemOri(o, n), s = i.rotation,
            a = i.left, c = i.top, u = i.width, f = i.height;
          this.LODOP[e](c + this.unit, a + this.unit, u + this.unit, f + this.unit, n, r), this.setLodopRotation(s)
        }
      }, {
        key: "setLodopItemOri", value: function (t, e) {
          if ("128Auto" === e) return t;
          var n = t.rotation, r = t.left, o = t.top, i = t.width, s = t.height;
          return 1 === n ? (t.top = o + s, t.width = s, t.height = i) : 2 === n ? (t.left = r + i, t.width = s, t.height = i) : 3 === n && (t.left = r + i), t
        }
      }, {
        key: "setLodopRotation", value: function (t) {
          1 === t ? this.LODOP.SET_PRINT_STYLEA(0, "Angle", 90) : 2 === t ? this.LODOP.SET_PRINT_STYLEA(0, "Angle", -90) : 3 === t && this.LODOP.SET_PRINT_STYLEA(0, "Angle", 180)
        }
      }, {
        key: "setEleRotation", value: function (t, e) {
          return 1 === e ? (t.style.MozTransform = "rotate(-90deg)", t.style.OTransform = "rotate(-90deg)", t.style.msTransform = "rotate(-90deg)", t.style.transform = "rotate(-90deg)", t.style.webkitTransform = "rotate(-90deg)") : 2 === e ? (t.style.MozTransform = "rotate(90deg)", t.style.OTransform = "rotate(90deg)", t.style.msTransform = "rotate(90deg)", t.style.transform = "rotate(90deg)", t.style.webkitTransform = "rotate(90deg)") : 3 === e && (t.style.MozTransform = "rotate(180deg)", t.style.OTransform = "rotate(180deg)", t.style.msTransform = "rotate(180deg)", t.style.transform = "rotate(180deg)", t.style.webkitTransform = "rotate(180deg)"), t
        }
      }], n && A(e.prototype, n), r && A(e, r), Object.defineProperty(e, "prototype", {writable: !1}), t
    }(), C = L, I = {
      sitEntra: "http://sfapi-internal.intsit.sfdc.com.cn:1080",
      sitEntraSbox: "http://sfapi-sbox.intsit.sfdc.com.cn:45290",
      sit: "http://sfapi.sit.sf-express.com:45290",
      sitSbox: "http://sfapi-sbox.sit.sf-express.com:45290",
      pro: "https://bspgw.sf-express.com",
      sbox: "https://sfapi-sbox.sf-express.com",
      innerSit: "https://eos-scp.sit.sf-express.com:4431/scp/int/api/getParsedData",
      innerProd: "https://eos-scp.sf-express.com/scp/int/api/getParsedData",
      innerFast: "https://eos-scp-int.sit.sf-express.com:443/scp/int/api/getParsedData"
    }, R = n(41);

    function N(t) {
      return N = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
        return typeof t
      } : function (t) {
        return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t
      }, N(t)
    }

    function j(t, e) {
      var n = Object.keys(t);
      if (Object.getOwnPropertySymbols) {
        var r = Object.getOwnPropertySymbols(t);
        e && (r = r.filter((function (e) {
          return Object.getOwnPropertyDescriptor(t, e).enumerable
        }))), n.push.apply(n, r)
      }
      return n
    }

    function D(t) {
      for (var e = 1; e < arguments.length; e++) {
        var n = null != arguments[e] ? arguments[e] : {};
        e % 2 ? j(Object(n), !0).forEach((function (e) {
          B(t, e, n[e])
        })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : j(Object(n)).forEach((function (e) {
          Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e))
        }))
      }
      return t
    }

    function B(t, e, n) {
      return (e = J(e)) in t ? Object.defineProperty(t, e, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
      }) : t[e] = n, t
    }

    function M(t) {
      return function (t) {
        if (Array.isArray(t)) return F(t)
      }(t) || function (t) {
        if ("undefined" != typeof Symbol && null != t[Symbol.iterator] || null != t["@@iterator"]) return Array.from(t)
      }(t) || function (t, e) {
        if (!t) return;
        if ("string" == typeof t) return F(t, e);
        var n = Object.prototype.toString.call(t).slice(8, -1);
        "Object" === n && t.constructor && (n = t.constructor.name);
        if ("Map" === n || "Set" === n) return Array.from(t);
        if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return F(t, e)
      }(t) || function () {
        throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
      }()
    }

    function F(t, e) {
      (null == e || e > t.length) && (e = t.length);
      for (var n = 0, r = new Array(e); n < e; n++) r[n] = t[n];
      return r
    }

    function U() {
      U = function () {
        return t
      };
      var t = {}, e = Object.prototype, n = e.hasOwnProperty,
        r = Object.defineProperty || function (t, e, n) {
          t[e] = n.value
        }, o = "function" == typeof Symbol ? Symbol : {}, i = o.iterator || "@@iterator",
        s = o.asyncIterator || "@@asyncIterator", a = o.toStringTag || "@@toStringTag";

      function c(t, e, n) {
        return Object.defineProperty(t, e, {
          value: n,
          enumerable: !0,
          configurable: !0,
          writable: !0
        }), t[e]
      }

      try {
        c({}, "")
      } catch (t) {
        c = function (t, e, n) {
          return t[e] = n
        }
      }

      function u(t, e, n, o) {
        var i = e && e.prototype instanceof h ? e : h, s = Object.create(i.prototype),
          a = new O(o || []);
        return r(s, "_invoke", {value: x(t, n, a)}), s
      }

      function f(t, e, n) {
        try {
          return {type: "normal", arg: t.call(e, n)}
        } catch (t) {
          return {type: "throw", arg: t}
        }
      }

      t.wrap = u;
      var l = {};

      function h() {
      }

      function p() {
      }

      function d() {
      }

      var y = {};
      c(y, i, (function () {
        return this
      }));
      var g = Object.getPrototypeOf, v = g && g(g(T([])));
      v && v !== e && n.call(v, i) && (y = v);
      var m = d.prototype = h.prototype = Object.create(y);

      function w(t) {
        ["next", "throw", "return"].forEach((function (e) {
          c(t, e, (function (t) {
            return this._invoke(e, t)
          }))
        }))
      }

      function b(t, e) {
        function o(r, i, s, a) {
          var c = f(t[r], t, i);
          if ("throw" !== c.type) {
            var u = c.arg, l = u.value;
            return l && "object" == N(l) && n.call(l, "__await") ? e.resolve(l.__await).then((function (t) {
              o("next", t, s, a)
            }), (function (t) {
              o("throw", t, s, a)
            })) : e.resolve(l).then((function (t) {
              u.value = t, s(u)
            }), (function (t) {
              return o("throw", t, s, a)
            }))
          }
          a(c.arg)
        }

        var i;
        r(this, "_invoke", {
          value: function (t, n) {
            function r() {
              return new e((function (e, r) {
                o(t, n, e, r)
              }))
            }

            return i = i ? i.then(r, r) : r()
          }
        })
      }

      function x(t, e, n) {
        var r = "suspendedStart";
        return function (o, i) {
          if ("executing" === r) throw new Error("Generator is already running");
          if ("completed" === r) {
            if ("throw" === o) throw i;
            return {value: void 0, done: !0}
          }
          for (n.method = o, n.arg = i; ;) {
            var s = n.delegate;
            if (s) {
              var a = S(s, n);
              if (a) {
                if (a === l) continue;
                return a
              }
            }
            if ("next" === n.method) n.sent = n._sent = n.arg; else if ("throw" === n.method) {
              if ("suspendedStart" === r) throw r = "completed", n.arg;
              n.dispatchException(n.arg)
            } else "return" === n.method && n.abrupt("return", n.arg);
            r = "executing";
            var c = f(t, e, n);
            if ("normal" === c.type) {
              if (r = n.done ? "completed" : "suspendedYield", c.arg === l) continue;
              return {value: c.arg, done: n.done}
            }
            "throw" === c.type && (r = "completed", n.method = "throw", n.arg = c.arg)
          }
        }
      }

      function S(t, e) {
        var n = e.method, r = t.iterator[n];
        if (void 0 === r) return e.delegate = null, "throw" === n && t.iterator.return && (e.method = "return", e.arg = void 0, S(t, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), l;
        var o = f(r, t.iterator, e.arg);
        if ("throw" === o.type) return e.method = "throw", e.arg = o.arg, e.delegate = null, l;
        var i = o.arg;
        return i ? i.done ? (e[t.resultName] = i.value, e.next = t.nextLoc, "return" !== e.method && (e.method = "next", e.arg = void 0), e.delegate = null, l) : i : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, l)
      }

      function E(t) {
        var e = {tryLoc: t[0]};
        1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e)
      }

      function _(t) {
        var e = t.completion || {};
        e.type = "normal", delete e.arg, t.completion = e
      }

      function O(t) {
        this.tryEntries = [{tryLoc: "root"}], t.forEach(E, this), this.reset(!0)
      }

      function T(t) {
        if (t || "" === t) {
          var e = t[i];
          if (e) return e.call(t);
          if ("function" == typeof t.next) return t;
          if (!isNaN(t.length)) {
            var r = -1, o = function e() {
              for (; ++r < t.length;) if (n.call(t, r)) return e.value = t[r], e.done = !1, e;
              return e.value = void 0, e.done = !0, e
            };
            return o.next = o
          }
        }
        throw new TypeError(N(t) + " is not iterable")
      }

      return p.prototype = d, r(m, "constructor", {
        value: d,
        configurable: !0
      }), r(d, "constructor", {
        value: p,
        configurable: !0
      }), p.displayName = c(d, a, "GeneratorFunction"), t.isGeneratorFunction = function (t) {
        var e = "function" == typeof t && t.constructor;
        return !!e && (e === p || "GeneratorFunction" === (e.displayName || e.name))
      }, t.mark = function (t) {
        return Object.setPrototypeOf ? Object.setPrototypeOf(t, d) : (t.__proto__ = d, c(t, a, "GeneratorFunction")), t.prototype = Object.create(m), t
      }, t.awrap = function (t) {
        return {__await: t}
      }, w(b.prototype), c(b.prototype, s, (function () {
        return this
      })), t.AsyncIterator = b, t.async = function (e, n, r, o, i) {
        void 0 === i && (i = Promise);
        var s = new b(u(e, n, r, o), i);
        return t.isGeneratorFunction(n) ? s : s.next().then((function (t) {
          return t.done ? t.value : s.next()
        }))
      }, w(m), c(m, a, "Generator"), c(m, i, (function () {
        return this
      })), c(m, "toString", (function () {
        return "[object Generator]"
      })), t.keys = function (t) {
        var e = Object(t), n = [];
        for (var r in e) n.push(r);
        return n.reverse(), function t() {
          for (; n.length;) {
            var r = n.pop();
            if (r in e) return t.value = r, t.done = !1, t
          }
          return t.done = !0, t
        }
      }, t.values = T, O.prototype = {
        constructor: O, reset: function (t) {
          if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = !1, this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEach(_), !t) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = void 0)
        }, stop: function () {
          this.done = !0;
          var t = this.tryEntries[0].completion;
          if ("throw" === t.type) throw t.arg;
          return this.rval
        }, dispatchException: function (t) {
          if (this.done) throw t;
          var e = this;

          function r(n, r) {
            return s.type = "throw", s.arg = t, e.next = n, r && (e.method = "next", e.arg = void 0), !!r
          }

          for (var o = this.tryEntries.length - 1; o >= 0; --o) {
            var i = this.tryEntries[o], s = i.completion;
            if ("root" === i.tryLoc) return r("end");
            if (i.tryLoc <= this.prev) {
              var a = n.call(i, "catchLoc"), c = n.call(i, "finallyLoc");
              if (a && c) {
                if (this.prev < i.catchLoc) return r(i.catchLoc, !0);
                if (this.prev < i.finallyLoc) return r(i.finallyLoc)
              } else if (a) {
                if (this.prev < i.catchLoc) return r(i.catchLoc, !0)
              } else {
                if (!c) throw new Error("try statement without catch or finally");
                if (this.prev < i.finallyLoc) return r(i.finallyLoc)
              }
            }
          }
        }, abrupt: function (t, e) {
          for (var r = this.tryEntries.length - 1; r >= 0; --r) {
            var o = this.tryEntries[r];
            if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
              var i = o;
              break
            }
          }
          i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
          var s = i ? i.completion : {};
          return s.type = t, s.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, l) : this.complete(s)
        }, complete: function (t, e) {
          if ("throw" === t.type) throw t.arg;
          return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), l
        }, finish: function (t) {
          for (var e = this.tryEntries.length - 1; e >= 0; --e) {
            var n = this.tryEntries[e];
            if (n.finallyLoc === t) return this.complete(n.completion, n.afterLoc), _(n), l
          }
        }, catch: function (t) {
          for (var e = this.tryEntries.length - 1; e >= 0; --e) {
            var n = this.tryEntries[e];
            if (n.tryLoc === t) {
              var r = n.completion;
              if ("throw" === r.type) {
                var o = r.arg;
                _(n)
              }
              return o
            }
          }
          throw new Error("illegal catch attempt")
        }, delegateYield: function (t, e, n) {
          return this.delegate = {
            iterator: T(t),
            resultName: e,
            nextLoc: n
          }, "next" === this.method && (this.arg = void 0), l
        }
      }, t
    }

    function z(t, e, n, r, o, i, s) {
      try {
        var a = t[i](s), c = a.value
      } catch (t) {
        return void n(t)
      }
      a.done ? e(c) : Promise.resolve(c).then(r, o)
    }

    function H(t) {
      return function () {
        var e = this, n = arguments;
        return new Promise((function (r, o) {
          var i = t.apply(e, n);

          function s(t) {
            z(i, r, o, s, a, "next", t)
          }

          function a(t) {
            z(i, r, o, s, a, "throw", t)
          }

          s(void 0)
        }))
      }
    }

    function q(t, e) {
      for (var n = 0; n < e.length; n++) {
        var r = e[n];
        r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, J(r.key), r)
      }
    }

    function J(t) {
      var e = function (t, e) {
        if ("object" !== N(t) || null === t) return t;
        var n = t[Symbol.toPrimitive];
        if (void 0 !== n) {
          var r = n.call(t, e || "default");
          if ("object" !== N(r)) return r;
          throw new TypeError("@@toPrimitive must return a primitive value.")
        }
        return ("string" === e ? String : Number)(t)
      }(t, "string");
      return "symbol" === N(e) ? e : String(e)
    }

    function K(t, e) {
      return K = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
        return t.__proto__ = e, t
      }, K(t, e)
    }

    function V(t) {
      var e = function () {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
          return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function () {
          }))), !0
        } catch (t) {
          return !1
        }
      }();
      return function () {
        var n, r = W(t);
        if (e) {
          var o = W(this).constructor;
          n = Reflect.construct(r, arguments, o)
        } else n = r.apply(this, arguments);
        return function (t, e) {
          if (e && ("object" === N(e) || "function" == typeof e)) return e;
          if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
          return function (t) {
            if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
            return t
          }(t)
        }(this, n)
      }
    }

    function W(t) {
      return W = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
        return t.__proto__ || Object.getPrototypeOf(t)
      }, W(t)
    }

    var Y = function (t) {
      !function (t, e) {
        if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
        t.prototype = Object.create(e && e.prototype, {
          constructor: {
            value: t,
            writable: !0,
            configurable: !0
          }
        }), Object.defineProperty(t, "prototype", {writable: !1}), e && K(t, e)
      }(a, t);
      var e, n, r, o, i, s = V(a);

      function a(t) {
        var e;
        return function (t, e) {
          if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function")
        }(this, a), (e = s.call(this, t)).sdkVersion = "2.7", e.version = "2.0", e.sdkType = "lodop", e.serviceCode = "COM_RECE_CLOUD_PRINT_PARSEDDATA", e.http = null, e.url = "/std/service", e.requestID = "", e.imageType = "url", e.printArr = [], e.printingFlag = !1, e.timer = null, e.partnerID = t.partnerID, e.env = I[t.env || "pro"] || "/" + t.env, e.notips = t.notips, t.callback && e.init(t.callback), e.isInnerSys = t.sysCode, e.innerSysEnv = t.env || "innerProd", e
      }

      return e = a, n = [{
        key: "lodopComplete", value: function () {
          var t = this, e = null;
          return new Promise((function (n, r) {
            e = setInterval((function () {
              var o = R.a();
              if (console.log(o, "111"), "complete" === o) {
                clearInterval(e), t.LODOP = R.b();
                var i = {};
                t.LODOP.code ? (t.tips(t.LODOP.msg), i = t.LODOP, r(i)) : n(i = {
                  code: 1,
                  msg: "success"
                })
              }
            }), 100)
          }))
        }
      }, {
        key: "init", value: function (t) {
          this.lodopComplete().then((function (e) {
            t(e)
          })).catch((function (e) {
            t(e)
          }))
        }
      }, {
        key: "getPrinters", value: function (t) {
          var e = this;
          if (!t) return "请参考最新的文档";
          this.lodopComplete().then((function () {
            for (var n = e.LODOP.GET_PRINTER_COUNT(), r = [], o = 0; o < n; o++) {
              var i = {index: o, name: e.LODOP.GET_PRINTER_NAME(o)};
              r.push(i)
            }
            t({code: 1, msg: "success", printers: r})
          })).catch((function (e) {
            t(e)
          }))
        }
      }, {
        key: "setPrinter", value: function (t) {
          this.printer = t
        }
      }, {
        key: "print", value: (i = H(U().mark((function t(e, n) {
          var r, o, i, s, a, c, u, f = arguments;
          return U().wrap((function (t) {
            for (; ;) switch (t.prev = t.next) {
              case 0:
                if (r = f.length > 2 && void 0 !== f[2] ? f[2] : {lodopFn: "PRINT"}, this.LODOP = R.b(), !this.LODOP.code) {
                  t.next = 6;
                  break
                }
                return this.tips(this.LODOP.msg), n && n(this.LODOP), t.abrupt("return");
              case 6:
                if (o = "", this.isInnerSys ? r && r.lodopFn && -1 === ["PRINT", "PREVIEW"].indexOf(r.lodopFn) ? o = "lodopFn参数仅支持PRINT、PREVIEW" : e.requestId ? e.reqTime ? e.templateCode ? e.documents ? e.signature || (o = "请传入签名") : o = "请传入documents" : o = "请传入templateCode" : o = "请传入reqTime" : o = "请传入requestId" : r && r.lodopFn && -1 === ["PRINT", "PREVIEW"].indexOf(r.lodopFn) ? o = "lodopFn参数仅支持PRINT、PREVIEW" : this.partnerID ? e.requestID ? e.accessToken ? e.templateCode ? e.documents || (o = "请传入documents") : o = "请传入templateCode" : o = "请传入accessToken" : o = "请传入requestID" : o = "请传入客户编码", !o) {
                  t.next = 12;
                  break
                }
                return this.tips(o), n && n({code: 0, msg: o}), t.abrupt("return");
              case 12:
                for (i = {}, s = ["templateCode", "templateVersion", "documents", "extJson", "customTemplateCode"], a = 0; a < s.length; a++) e[c = s[a]] && (i[c] = e[c], delete e[c]);
                if (this.isInnerSys ? ("1.0" === e.version && (i.version = e.version), i.sdkVersion = this.sdkVersion, i.requestId = e.requestId, i.signature = e.signature, i.sysCode = this.isInnerSys, i.reqTime = e.reqTime, e.msgData = i, this.requestID = e.requestId || "") : (i.sdkVersion = this.sdkVersion, i.version = this.version, e.msgData = i, this.requestID = e.requestID || "", e.partnerID = this.partnerID, e.serviceCode = this.serviceCode), u = {
                  data: e,
                  cb: n,
                  options: r
                }, this.printArr.length) {
                  t.next = 23;
                  break
                }
                return this.printFn(e, n, r), this.printArr.push(u), t.abrupt("return");
              case 23:
                this.printArr.push(u);
              case 24:
              case"end":
                return t.stop()
            }
          }), t, this)
        }))), function (t, e) {
          return i.apply(this, arguments)
        })
      }, {
        key: "mergeFiles", value: function (t) {
          try {
            if (1 === t.length) return t;
            for (var e = [], n = 0; n < t.length; n += 2) {
              var r = t[n], o = t[n + 1];
              if (!o) {
                e.push(r);
                break
              }
              if (this.isInnerSys) if (r.success && o.success) {
                var i = [].concat(M(r.obj.files), M(o.obj.files)),
                  s = D(D({}, r.obj), {}, {files: i});
                e.push({obj: s, requestId: r.requestId, success: r.success})
              } else e.push(r, o); else {
                var a = JSON.parse(r.apiResultData || "{}"),
                  c = JSON.parse(o.apiResultData || "{}");
                if (a.success && c.success) {
                  var u = [].concat(M(a.obj.files), M(c.obj.files)),
                    f = D(D({}, a.obj), {}, {files: u});
                  e.push({
                    apiErrorMsg: r.apiErrorMsg,
                    apiResponseID: r.apiResponseID,
                    apiResultCode: r.apiResultCode,
                    apiResultData: JSON.stringify({
                      obj: f,
                      requestId: a.requestId,
                      success: a.success
                    })
                  })
                } else e.push(r, o)
              }
            }
            return e
          } catch (t) {
            console.log(t, "error")
          }
        }
      }, {
        key: "printFn", value: (o = H(U().mark((function t(e, n, r) {
          var o, i, s, a, c, u, f, l, h, p = this;
          return U().wrap((function (t) {
            for (; ;) switch (t.prev = t.next) {
              case 0:
                for (console.time("打印总时间"), this.printingFlag = !0, o = e.msgData.documents, i = o.length, s = Math.ceil(i / 1), a = [], c = 0; c < s; c++) u = void 0, this.isInnerSys ? (u = JSON.parse(JSON.stringify(e.msgData))).documents = o.slice(1 * c, 1 * (c + 1)) : (u = JSON.parse(JSON.stringify(e))).msgData.documents = o.slice(1 * c, 1 * (c + 1)), a.push({
                  fn: this.createHttp,
                  pagesData: u,
                  options: r,
                  originalDocuments: o
                });
                f = 0, l = 0, r.pageType && r.pageType.includes("A4") && (l = e.msgData.templateCode.includes("76") ? "38mm" : "26mm"), h = function () {
                  var t = H(U().mark((function t(e, i) {
                    var s, a;
                    return U().wrap((function (t) {
                      for (; ;) switch (t.prev = t.next) {
                        case 0:
                          if (f++, p.LODOP.PRINT_INITA(0, l, 800, 600, "面单打印"), s = "PREVIEW" === r.lodopFn ? r.allPreview ? o.length : 6 : 1 === f ? "A4" === r.pageType ? 2 : 10 : 20, 0 !== (a = (a = e.slice(0, s)).map((function (t, e) {
                            return t.fn.call(p, t.pagesData, t.options, t.originalDocuments, e)
                          }))).length) {
                            t.next = 9;
                            break
                          }
                          return console.timeEnd("打印总时间"), p.printDone(n, {
                            code: 1,
                            msg: "success"
                          }), t.abrupt("return");
                        case 9:
                          console.time("请求时间".concat(f)), Promise.all(a).then(function () {
                            var t = H(U().mark((function t(o) {
                              var a, c, u, l;
                              return U().wrap((function (t) {
                                for (; ;) switch (t.prev = t.next) {
                                  case 0:
                                    console.timeEnd("请求时间".concat(f)), o.sort((function (t, e) {
                                      return t.index - e.index
                                    })), o = o.map((function (t) {
                                      return t.result
                                    })), "A4" === r.pageType && (o = p.mergeFiles(o)), a = !1, console.time("数据处理时间".concat(f)), u = U().mark((function t(e) {
                                      var r;
                                      return U().wrap((function (t) {
                                        for (; ;) switch (t.prev = t.next) {
                                          case 0:
                                            return r = o[e], t.next = 3, i(r).catch((function (t) {
                                              return a = !0, c = e, -1 !== [11, 13].indexOf(t.code) || 12 === t.code && ["A1005", "A1007", "A1008", "A1009", "A1099"].indexOf(t.apiResultCode) > -1 ? (p.tips((t.msg || "获取数据失败") + "，打印任务中断，请解决问题后继续打印"), p.printDone(n, t), t) : (12 === t.code && 14 === t.code || p.tips(t.msg), p.printDone(n, t), t)
                                            }));
                                          case 3:
                                            if (!a) {
                                              t.next = 5;
                                              break
                                            }
                                            return t.abrupt("return", 1);
                                          case 5:
                                          case"end":
                                            return t.stop()
                                        }
                                      }), t)
                                    })), l = 0;
                                  case 8:
                                    if (!(l < o.length)) {
                                      t.next = 15;
                                      break
                                    }
                                    return t.delegateYield(u(l), "t0", 10);
                                  case 10:
                                    if (!t.t0) {
                                      t.next = 12;
                                      break
                                    }
                                    return t.abrupt("break", 15);
                                  case 12:
                                    l++, t.next = 8;
                                    break;
                                  case 15:
                                    if (console.timeEnd("数据处理时间".concat(f)), 0 !== c) {
                                      t.next = 18;
                                      break
                                    }
                                    return t.abrupt("return");
                                  case 18:
                                    console.time("启动打印任务".concat(f)), p.LODOP[r.lodopFn || "PRINT"](), p.LODOP.On_Return = function (t, n) {
                                      if (console.timeEnd("启动打印任务".concat(f)), n) {
                                        if (a) return;
                                        "PRINT" !== r.lodopFn && r.lodopFn || h(e.slice(s), i)
                                      } else {
                                        if (!window.confirm("推送打印机失败，请检查打印机后点击确认尝试重新推送打印")) return {
                                          code: 14,
                                          msg: "推送打印机失败"
                                        };
                                        console.log("请检查打印机后重新打印")
                                      }
                                      if (("0" === n || "1" === n) && "PREVIEW" === r.lodopFn) {
                                        if (a) return;
                                        return h(e.slice(s), i), {code: 15, msg: ""}
                                      }
                                    };
                                  case 21:
                                  case"end":
                                    return t.stop()
                                }
                              }), t)
                            })));
                            return function (e) {
                              return t.apply(this, arguments)
                            }
                          }()).catch((function () {
                            h(e.slice(s), i)
                          }));
                        case 11:
                        case"end":
                          return t.stop()
                      }
                    }), t)
                  })));
                  return function (e, n) {
                    return t.apply(this, arguments)
                  }
                }(), h(a, (function (t) {
                  return new Promise((function (e, n) {
                    if (t.apiResultCode || p.isInnerSys) if ("A1000" === t.apiResultCode || p.isInnerSys) {
                      var o = p.isInnerSys ? t : JSON.parse(t.apiResultData);
                      if (o.success) {
                        var i = o.obj.files;
                        i.length > 0 && (p.contentBox = document.createElement("div"), p[r.pageType ? "renderAsyncA4" : "renderAsync"](i, r).then((function (t) {
                          var r = {code: t.code, msg: t.msg, requestID: p.requestID};
                          t.downloadUrl && (r.downloadUrl = t.downloadUrl), 1 !== r.code && n(t), e()
                        })))
                      } else n({code: 13, msg: o.errorMessage, requestID: p.requestID})
                    } else n({
                      code: 12,
                      msg: t.apiErrorMsg,
                      requestID: p.requestID,
                      apiResultCode: t.apiResultCode
                    }); else n({code: 11, msg: t.msg, requestID: p.requestID})
                  }))
                }));
              case 13:
              case"end":
                return t.stop()
            }
          }), t, this)
        }))), function (t, e, n) {
          return o.apply(this, arguments)
        })
      }, {
        key: "createHttp", value: function (t, e, n, r) {
          var o, i = this;
          this.isInnerSys ? (o = I[this.innerSysEnv], t.isInnerSys = !0, t.originalDocuments = n) : o = this.env + this.url, this.http = new c;
          var s = JSON.parse(JSON.stringify(t)), a = this.isInnerSys ? {
            reqTime: t.reqTime,
            signature: t.signature,
            sysCode: this.isInnerSys,
            sdkVersion: this.sdkVersion,
            sdkType: this.sdkType
          } : {};
          return function t(e) {
            return i.http.ajax({
              data: JSON.parse(JSON.stringify(s)),
              method: "post",
              url: o,
              headers: JSON.parse(JSON.stringify(a))
            }).then((function (t) {
              if (!t.apiResultCode && !i.isInnerSys) return Promise.reject(t);
              if ("A1000" !== t.apiResultCode && !i.isInnerSys) return Promise.reject(t);
              var e = i.isInnerSys ? t : JSON.parse(t.apiResultData);
              return e.success ? {result: t, index: r} : Promise.reject(e)
            })).catch((function (n) {
              return e > 0 ? new Promise((function (n) {
                setTimeout((function () {
                  n(t(e - 1))
                }), 1e3)
              })) : {
                result: n instanceof Error ? {
                  code: 11,
                  msg: n.message,
                  requestID: i.requestID
                } : n, index: r
              }
            }))
          }(3)
        }
      }, {
        key: "printDone", value: function (t, e) {
          if (this.printingFlag = !1, e && 1 === e.code) {
            if (this.printArr.splice(0, 1), this.printArr.length) {
              var n = this.printArr[0], r = n.data, o = n.cb, i = n.options;
              this.printFn(r, o, i)
            }
          } else this.printArr = [];
          t && t(e)
        }
      }, {
        key: "tips", value: function (t) {
          if (t && !this.notips) {
            var e = document.getElementById("scpsdk-tip-mask");
            if (e) return e.style.display = "block", document.getElementById("scpsdk-tip-dialog").style.display = "block", void (document.getElementById("scpsdk-tip-body").innerHTML = t);
            var n = function () {
              r.style.display = "none", o.style.display = "none"
            }, r = document.createElement("div");
            r.style.cssText = "position: fixed;left: 0;top: 0;width: 100%;height: 100%;opacity: .5;background: #000;z-index: 10000", r.onclick = n, r.id = "scpsdk-tip-mask", document.body.appendChild(r);
            var o = document.createElement("div");
            o.id = "scpsdk-tip-dialog", o.style.cssText = "\n    position: fixed;\n    top: 15%;\n    left: 50%;\n    width: 480px;\n    height: auto;\n    z-index: 10000;\n    transform: translateX(-50%);\n    background: #fff;\n    border-radius: 4px;\n    box-shadow: 0 2px 8px rgba(0,0,0,.3);\n    box-sizing: border-box;\n    z-index: 10001;\n    animation: fade-in .3s;";
            var i = document.createElement("div");
            i.id = "scpsdk-tip-head", i.style.cssText = "\n    padding: 20px;\n    font-size: 18px;\n    font-weight: bold;\n    color: #303133;\n    background-color: #f5f7fa;\n    border-top-left-radius: 4px;\n    border-top-right-radius: 4px;\n    ", i.innerText = "提示", o.appendChild(i);
            var s = document.createElement("div");
            s.style.cssText = "\n    position: absolute;\n    right: 20px;\n    top: 20px;\n    font-size: 24px;\n    color: #ccc;\n    cursor: pointer;\n    transition: color .3s;\n    ", s.innerText = "X", s.id = "scpsdk-tip-close", s.onclick = n, o.appendChild(s);
            var a = document.createElement("div");
            a.id = "scpsdk-tip-body", a.style.cssText = "\n    padding: 20px;\n    color: #606266;\n    font-size: 14px;\n    line-height: 22px;\n    ", a.innerHTML = t, o.appendChild(a), document.body.appendChild(o)
          }
        }
      }], n && q(e.prototype, n), r && q(e, r), Object.defineProperty(e, "prototype", {writable: !1}), a
    }(C);
    e.default = Y
  }]).default
}));
